提出 #24700
提出日時 | 08/08 13:22:58 |
---|---|
問題 | B: Dynamic Scoring Test |
ユーザ | kyutatsu |
言語 | C++23 (g++ 12.2.0) |
得点 | 0 |
結果 | CE |
コンパイルエラー
./Main.cpp: In function 'int main()':
./Main.cpp:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
5 | cout << 10 << endl;
| ^~~~
| std::cout
In file included from ./Main.cpp:1:
/usr/include/c++/12/iostream:61:18: note: 'std::cout' declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
./Main.cpp:5:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
5 | cout << 10 << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/12/iostream:39:
/usr/include/c++/12/ostream:688:5: note: 'std::endl' declared here
688 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~