QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#329842#2400. Mult!ZhaoZiLongCompile Error//C++23543b2024-02-17 04:39:502024-02-17 04:39:50

詳細信息

answer.code: In function ‘int main(int, char**)’:
answer.code:8:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
    8 |     cin >> n ;
      |     ^~~
      |     std::cin
In file included from answer.code:1:
/usr/include/c++/13/iostream:62:18: note: ‘std::cin’ declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
answer.code:30:13: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
   30 |             cout << "mult";
      |             ^~~~
      |             std::cout
/usr/include/c++/13/iostream:63:18: note: ‘std::cout’ declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~