/ Vijos /

记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:6:12: error: ‘cout<<a’ was not declared in this scope
    6 |            cout<<a+b<<endl;
      |            ^~~~~~~~~
foo.cc:6:22: error: ‘b<<endl’ was not declared in this scope
    6 |            cout<<a+b<<endl;
      |                      ^~~~~~~~~
foo.cc:5:8: warning: unused variable ‘a’ [-Wunused-variable]
    5 |    int a,b;
      |        ^
foo.cc:5:10: warning: unused variable ‘b’ [-Wunused-variable]
    5 |    int a,b;
      |          ^
foo.cc: At global scope:
foo.cc:8:1: error: expected unqualified-id before ‘return’
    8 | return 0
      | ^~~~~~

信息

递交者
类型
自测
题目
P1000 A+B Problem
语言
C++
递交时间
2025-08-13 15:35:10
评测时间
2025-08-13 15:35:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes