Problem exam
User angelahaha
Submission Time 2023-11-08 11:04:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:5:9: error: ‘x’ was not declared in this scope
5 | cin >> x;
| ^
exam.cpp:6:10: error: expected primary-expression before ‘=’ token
6 | if (x) = 2{
| ^
exam.cpp:8:10: error: expected primary-expression before ‘=’ token
8 | if (x) = 1 {
| ^
exam.cpp:13:5: error: expected ‘}’ at end of input
13 | }
| ^
exam.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^