| Problem | exam |
|---|---|
| User | yihai |
| Submission Time | 2026-01-21 17:02:51 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:7:2: error: expected initializer before ‘cin’
7 | cin >>x;
| ^~~
exam.cpp:8:5: error: ‘x’ was not declared in this scope
8 | if(x==1){;
| ^
exam.cpp:12:12: error: expected primary-expression before ‘>>’ token
12 | cin >>a; >>b;
| ^~
exam.cpp:13:7: error: expected ‘;’ before ‘a’
13 | cout a*b;
| ^~
| ;
exam.cpp:13:11: error: expected ‘}’ at end of input
13 | cout a*b;
| ^
exam.cpp:10:16: note: to match this ‘{’
10 | }else if(x==2){;
| ^
exam.cpp:13:11: error: expected ‘}’ at end of input
13 | cout a*b;
| ^
exam.cpp:4:15: note: to match this ‘{’
4 | signed main() {
| ^