记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:19:44: error: break statement not within loop or switch
   case 'A': cout << "Aquaman Win" << endl; break;
                                            ^~~~~
/in/foo.cc:20:1: error: case label ''B'' not within a switch statement
 case 'B': cout << "Superman Win" << endl; break;
 ^~~~
/in/foo.cc:20:43: error: break statement not within loop or switch
 case 'B': cout << "Superman Win" << endl; break;
                                           ^~~~~
/in/foo.cc:21:1: error: case label ''C'' not within a switch statement
 case 'C': cout << "Batman Win" << endl; break;
 ^~~~
/in/foo.cc:21:41: error: break statement not within loop or switch
 case 'C': cout << "Batman Win" << endl; break;
                                         ^~~~~
/in/foo.cc: At global scope:
/in/foo.cc:23:1: error: expected unqualified-id before 'return'
 return 0;
 ^~~~~~
/in/foo.cc:24:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
递交
题目
谁更聪明?
语言
C++
递交时间
2019-03-04 17:25:37
评测时间
2019-03-04 17:25:37
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes