Problem exam
User angelanglez
Submission Time 2025-01-15 16:09:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:5:10: error: expected ‘;’ before ‘if’
5 | cin >> x
| ^
| ;
6 | if (x = 1){
| ~~
exam.cpp:15:1: error: expected ‘}’ at end of input
15 | }
| ^
exam.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^