Problem exam
User SioHuang
Submission Time 2023-11-08 11:23:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:7:18: error: expected ‘)’ before ‘;’ token
7 | if (int a ;a = 1; ) {
| ~ ^
| )
exam.cpp:7:20: error: expected primary-expression before ‘)’ token
7 | if (int a ;a = 1; ) {
| ^
exam.cpp:10:2: error: ‘else’ without a previous ‘if’
10 | else (a != 1 ;a = 2;) {
| ^~~~
exam.cpp:10:14: error: expected ‘)’ before ‘;’ token
10 | else (a != 1 ;a = 2;) {
| ~ ^~
| )
exam.cpp:10:22: error: expected primary-expression before ‘)’ token
10 | else (a != 1 ;a = 2;) {
| ^