/ OPS /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |      cout<<k<<j<<i<<endl;
      |      ^~~~
      |      std::cout
In file included from /in/foo.cc:1:
/usr/include/c++/9/iostream:61:18: note: 'std::cout' declared here
   61 |   extern ostream cout;  /// Linked to standard output
      |                  ^~~~
/in/foo.cc:10:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |      cout<<k<<j<<i<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/9/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/9/ostream:599:5: note: 'std::endl' declared here
  599 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
/in/foo.cc:5:9: warning: unused variable 'a' [-Wunused-variable]
    5 |     int a,b,c;
      |         ^
/in/foo.cc:5:11: warning: unused variable 'b' [-Wunused-variable]
    5 |     int a,b,c;
      |           ^
/in/foo.cc:5:13: warning: unused variable 'c' [-Wunused-variable]
    5 |     int a,b,c;
      |             ^

信息

递交者
类型
递交
题目
P1072 百钱买百鸡问题
语言
C++
递交时间
2025-03-23 15:21:46
评测时间
2025-03-23 15:21:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes