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

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:7:12: error: expected ‘)’ before ‘;’ token
7 | if (;a = 1;) {
| ~ ^
| )
exam.cpp:7:13: error: expected primary-expression before ‘)’ token
7 | if (;a = 1;) {
| ^
exam.cpp:10:2: error: ‘else’ without a previous ‘if’
10 | else (;a = 2;) {
| ^~~~
exam.cpp:10:8: error: expected primary-expression before ‘;’ token
10 | else (;a = 2;) {
| ^
exam.cpp:10:8: error: expected ‘)’ before ‘;’ token
10 | else (;a = 2;) {
| ~^
| )
exam.cpp:10:15: error: expected primary-expression before ‘)’ token
10 | else (;a = 2;) {
| ^