Problem exam
User claireau
Submission Time 2023-11-08 13:40:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:15:15: error: expected ‘;’ before ‘)’ token
15 | for (x = 2);
| ^
| ;
exam.cpp:16:2: error: expected primary-expression before ‘{’ token
16 | {cout << (a * b);
| ^
exam.cpp:15:17: error: expected ‘;’ before ‘{’ token
15 | for (x = 2);
| ^
| ;
16 | {cout << (a * b);
| ~
exam.cpp:16:2: error: expected primary-expression before ‘{’ token
16 | {cout << (a * b);
| ^
exam.cpp:15:17: error: expected ‘)’ before ‘{’ token
15 | for (x = 2);
| ~ ^
| )
16 | {cout << (a * b);
| ~