Problem exam
User Jovan67
Submission Time 2026-02-20 16:19:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:7:1: error: expected initializer before ‘std’
7 | std::cin >> x;
| ^~~
exam.cpp:9:10: error: expected initializer before ‘==’ token
9 | if(int x == 1){
| ^~
exam.cpp:9:9: error: expected ‘)’ before ‘==’ token
9 | if(int x == 1){
| ~ ^~~
| )
exam.cpp:16:15: error: expected initializer before ‘==’ token
16 | else if(int x == 2){
| ^~
exam.cpp:16:14: error: expected ‘)’ before ‘==’ token
16 | else if(int x == 2){
| ~ ^~~
| )