Problem | exam |
---|---|
User | Denzio321 |
Submission Time | 2023-01-31 18:30:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exam.cpp: In function ‘int main()’:
exam.cpp:6:2: error: case label ‘x’ not within a switch statement
6 | case (x){
| ^~~~
exam.cpp:6:10: error: expected ‘:’ before ‘{’ token
6 | case (x){
| ^
| :
exam.cpp:7:3: error: case label ‘1’ not within a switch statement
7 | case 1:
| ^~~~
exam.cpp:9:3: error: case label ‘2’ not within a switch statement
9 | case 2:
| ^~~~
exam.cpp:14:34: error: expected ‘}’ at end of input
14 | cout << to_string(a*b) << endl;
| ^
exam.cpp:6:10: note: to match this ‘{’
6 | case (x){
| ^
exam.cpp:14:34: error: expected ‘}’ at end of input
14 | cout << to_string(a*b) << endl;
| ^
exam.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^