/ OPS /

记录详情

Compile Error

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

信息

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