/ 小林OJ /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     cout << a + b;
      |     ^~~~
      |     std::cout
In file included from /in/foo.cc:1:
/usr/include/c++/12/iostream:61:18: note: 'std::cout' declared here
   61 |   extern ostream cout;          /// Linked to standard output
      |                  ^~~~
/in/foo.cc:5:13: error: 'a' was not declared in this scope
    5 |     cout << a + b;
      |             ^
/in/foo.cc:5:17: error: 'b' was not declared in this scope
    5 |     cout << a + b;
      |                 ^

信息

递交者
类型
递交
题目
P1001 A+B问题
语言
C++
递交时间
2025-06-25 16:47:13
评测时间
2025-06-25 16:47:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes