Problem | exam |
---|---|
User | Um |
Submission Time | 2023-04-28 20:44:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:6:8: error: redeclaration of ‘int x’
6 | int x;
| ^
exam.cpp:5:9: note: ‘int x’ previously declared here
5 | int x = 1;
| ^
exam.cpp:7:8: error: expected ‘;’ before ‘if’
7 | cin>>x
| ^
| ;
8 | if (x == 1) {
| ~~