/ OPS /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:4:1: error: only constructors take member initializers
    4 | {
      | ^
/in/foo.cc:4:1: error: expected identifier before '{' token
/in/foo.cc:6:11: error: expected ';' before 'cout'
    6 |  cin>>a>>b
      |           ^
      |           ;
    7 |  cout<<a+b<<endl;
      |  ~~~~      
/in/foo.cc:8:10: error: expected ';' before '}' token
    8 |  return 0
      |          ^
      |          ;
    9 | }
      | ~         

信息

递交者
类型
自测
语言
C++
递交时间
2024-09-15 19:19:45
评测时间
2024-09-15 19:19:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes