/ Vijos /

记录详情

Compile Error

/in/foo.cc:3:10: error: stray '\357' in program
 int main()
          ^
/in/foo.cc:3:11: error: stray '\274' in program
 int main()
           ^
/in/foo.cc:3:12: error: stray '\211' in program
 int main()
            ^
/in/foo.cc:3:9: error: cannot declare '::main' to be a global variable
 int main()
         ^
/in/foo.cc:5:4: error: expected primary-expression before 'int'
    int a,b;
    ^~~
/in/foo.cc:5:4: error: expected '}' before 'int'
/in/foo.cc:5:4: error: expected ')' before 'int'
/in/foo.cc:5:10: error: 'b' was not declared in this scope
    int a,b;
          ^
/in/foo.cc:6:4: error: 'cin' does not name a type
    cin>>a>>b;
    ^~~
/in/foo.cc:7:4: error: 'cout' does not name a type
    cout<<a+b<<endl;
    ^~~~
/in/foo.cc:8:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
递交
题目
P1000 A+B Problem
语言
C++
递交时间
2018-07-18 11:19:51
评测时间
2018-07-18 11:19:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes