Problem exam
User elsatanyixin
Submission Time 2026-02-14 10:09:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp: In function ‘int main()’:
exam.cpp:9:9: error: expected ‘;’ before ‘cin’
9 | 1<=x<=2
| ^
| ;
10 | cin >> x;
| ~~~
exam.cpp:16:2: error: expected initializer before ‘cin’
16 | cin >>a>>b;
| ^~~
exam.cpp:17:11: error: ‘b’ was not declared in this scope
17 | cout<< a*b;
| ^
exam.cpp:18:1: error: expected ‘}’ at end of input
18 | }
| ^
exam.cpp:7:13: note: to match this ‘{’
7 | int main () {
| ^