Problem exam
User kashsinghal
Submission Time 2023-11-08 11:35:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp:6:4: error: ‘cin’ does not name a type; did you mean ‘sin’?
6 | cin >> a >> b;
| ^~~
| sin
exam.cpp:7:2: error: ‘cout’ does not name a type
7 | cout << a*b;
| ^~~~
exam.cpp: In function ‘int32_t main()’:
exam.cpp:13:3: error: expected ‘}’ before ‘else’
13 | else if (x == 2) {
| ^~~~
exam.cpp:11:14: note: to match this ‘{’
11 | if (x == 1) {
| ^
exam.cpp:14:15: error: expected ‘;’ before ‘return’
14 | cout << a*b
| ^
| ;
15 |
16 | return 0;
| ~~~~~~
exam.cpp:17:1: error: expected ‘}’ at end of input
17 | }
| ^
exam.cpp:8:16: note: to match this ‘{’
8 | int32_t main (){
| ^