Problem exam
User SirCTan
Submission Time 2024-12-16 13:44:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:6:16: error: expected primary-expression before ‘/’ token
6 | cin >> x; /
| ^
exam.cpp:8:5: error: expected primary-expression before ‘if’
8 | if (x == 1) {
| ^~
exam.cpp:10:7: error: ‘else’ without a previous ‘if’
10 | } else if (x == 2) {
| ^~~~