Problem exam
User Rcrc
Submission Time 2026-08-17 11:01:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp:1:2: error: invalid preprocessing directive #inckude; did you mean #include?
1 | #inckude <bits/stdc++ .h>
| ^~~~~~~
| include
exam.cpp:3:13: error: expected constructor, destructor, or type conversion before ‘long’
3 | #define int long long
| ^~~~
exam.cpp:5:2: note: in expansion of macro ‘int’
5 | int x; cin >> x;// declare an interger X and reads it
| ^~~
exam.cpp:5:9: error: ‘cin’ does not name a type
5 | int x; cin >> x;// declare an interger X and reads it
| ^~~
exam.cpp:8:2: error: expected unqualified-id before ‘if’
8 | if (x == 1){
| ^~
exam.cpp:11:4: error: expected unqualified-id before ‘else’
11 | } else if (x == 2){
| ^~~~
exam.cpp:16:1: error: expected declaration before ‘}’ token
16 | }
| ^