Lewis Hamilton and Charles Leclerc reacted angrily to their qualifying results and a 10-second penalty at the Las Vegas Grand Prix.