Problem exam
User Rcrc
Submission Time 2026-08-18 09:52:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp:3:2: error: invalid preprocessing directive #int
3 | #int long long
| ^~~
exam.cpp: In function ‘int main()’:
exam.cpp:5:17: error: expected ‘;’ before ‘if’
5 | int x; cin >> x
| ^
| ;
6 | if (x==1) {
| ~~
exam.cpp:9:2: error: ‘else’ without a previous ‘if’
9 | else if (x==2) {
| ^~~~
exam.cpp:13:11: error: expected ‘;’ before ‘}’ token
13 | return 0
| ^
| ;
14 | }
| ~
exam.cpp:14:3: error: expected ‘}’ at end of input
14 | }
| ^
exam.cpp:4:8: note: to match this ‘{’
4 | main() {
| ^