/ Vijos /

记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:5:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
    5 |     cin >> a >> b;
      |     ^~~
      |     std::cin
In file included from stdc++.h:146:
/nix/gcc-13.2.0/include/c++/13.2.0/iostream:62:18: note: ‘std::cin’ declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
foo.cc:6:9: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
    6 |         cout << a + b;
      |         ^~~~
      |         std::cout
/nix/gcc-13.2.0/include/c++/13.2.0/iostream:63:18: note: ‘std::cout’ declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~

信息

递交者
类型
递交
题目
P1000 A+B Problem
语言
C++
递交时间
2024-05-05 10:09:01
评测时间
2024-05-05 10:09:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes