Problem exam
User Helloworld
Submission Time 2026-01-21 17:04:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:8:11: error: expected ‘;’ before ‘if’
8 | x = 1
| ^
| ;
9 | if (x == 1);
| ~~
exam.cpp:10:14: error: ‘Hello’ was not declared in this scope; did you mean ‘ftello’?
10 | printf(Hello World);
| ^~~~~
| ftello
exam.cpp:12:12: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
12 | cout >> a*b;
| ~~~~ ^~ ~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
exam.cpp:12:12: note: candidate: ‘operator>>(int, int)’ <built-in>
12 | cout >> a*b;
| ~~~~~^~~~~~
exam.cpp:12:12: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘in