记录详情

Compile Error

/in/foo.cc:1:12: warning: extra tokens at end of #include directive
    1 | #include <>>b;
      |            ^
/in/foo.cc:1:10: error: empty filename in #include
    1 | #include <>>b;
      |          ^~
/in/foo.cc:2:5: error: 'cout' does not name a type
    2 |     cout<<a+b<<endl;
      |     ^~~~
/in/foo.cc:3:5: error: expected unqualified-id before 'return'
    3 |     return 0;
      |     ^~~~~~
/in/foo.cc:4:1: error: expected declaration before '}' token
    4 | }iostream>
      | ^
/in/foo.cc:4:2: error: 'iostream' does not name a type
    4 | }iostream>
      |  ^~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin>>a
      |     ^~~
/in/foo.cc:9:11: error: expected '}' at end of input
    9 |     cin>>a
      |           ^
/in/foo.cc:7:1: note: to match this '{'
    7 | {
      | ^
/in/foo.cc:8:11: warning: unused variable 'b' [-Wunused-variable]
    8 |     int a,b;
      |           ^

信息

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