Problem exam
User senkyte
Submission Time 2024-02-05 12:34:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:3:14: error: expected primary-expression before ‘int’
3 | std::cin >> int option;
| ^~~
exam.cpp:4:5: error: ‘option’ was not declared in this scope
4 | if(option == 1){
| ^~~~~~
exam.cpp:5:29: error: expected ‘;’ before ‘}’ token
5 | std::cout << "Hello World"
| ^
| ;
6 | }
| ~
exam.cpp:12:33: error: expected ‘;’ before ‘}’ token
12 | std::cout << number1 + number2
| ^
| ;
13 | }
| ~