/ Vijos /

记录详情

Compile Error

/in/foo.cc:2:7: error: expected nested-name-specifier before 'manespace'
    2 | using manespace std;
      |       ^~~~~~~~~
/in/foo.cc:4:1: error: expected primary-expression before 'int'
    4 | int n,m;
      | ^~~
/in/foo.cc:4:1: error: expected '}' before 'int'
/in/foo.cc:3:13: note: to match this '{'
    3 | int main(){
      |             ^
/in/foo.cc:5:9: error: 'cin' does not name a type
    5 |         cin>>n>>m;
      |         ^~~
/in/foo.cc:6:17: error: 'n' was not declared in this scope
    6 |         int sum=n+m;
      |                 ^
/in/foo.cc:6:19: error: 'm' was not declared in this scope; did you mean 'tm'?
    6 |         int sum=n+m;
      |                   ^
      |                   tm
/in/foo.cc:7:9: error: 'cout' does not name a type
    7 |         cout<<sum;
      |         ^~~~
/in/foo.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^

信息

递交者
类型
递交
题目
P1000 A+B Problem
语言
C++
递交时间
2026-01-12 15:57:29
评测时间
2026-01-12 15:57:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes