记录详情

Compile Error

/in/foo.cc:2:5: error: cannot declare '::main' to be a global variable
 int main{
     ^~~~
/in/foo.cc:3:2: error: expected primary-expression before 'int'
  int a,b;
  ^~~
/in/foo.cc:3:2: error: expected '}' before 'int'
/in/foo.cc:4:7: error: expected constructor, destructor, or type conversion before '(' token
  scanf("%d %d",&a,&b);
       ^
/in/foo.cc:5:8: error: expected constructor, destructor, or type conversion before '(' token
  printf("%d\n",a+b);
        ^
/in/foo.cc:6:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
递交
题目
A+B
语言
C++
递交时间
2017-08-24 13:11:09
评测时间
2017-08-24 13:11:09
评测机
分数
0
总耗时
952ms
峰值内存
123.727 MiB