79424388

Date: 2025-02-09 04:34:33
Score: 2
Natty:
Report link

Please remove the semicolon at the end of the if statement which is causing the issue.

wrong code : if (städer[j].Temp > städer[j + 1].Temp);

Correct code : if (städer[j].Temp > städer[j + 1].Temp)

It would work as you expected.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mari