Here's a typical program assigned to thousands of computer science students each year. Although apparently correct, it contains a error lurking in this simple code.


#include <iostream>

void main()

{

    std::cout << "Hello World\n";

}

Source code

Hint 1: Every C++ compiler in the world will compile and execute this program without a problem.

Next Hint
Answer

Main gallery