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

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:9:2: error: expected ‘}’ before ‘else’
9 | else{
| ^~~~
exam.cpp:8:2: note: to match this ‘{’
8 | {
| ^
exam.cpp:9:2: error: expected ‘}’ before ‘else’
9 | else{
| ^~~~
exam.cpp:6:12: note: to match this ‘{’
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() {
| ^