제출 #1175669

#제출 시각아이디문제언어결과실행 시간메모리
1175669naphonjangjit삶의 질 (IOI10_quality)C++20
컴파일 에러
0 ms0 KiB
#include <iostream> int main(){ cout << "Hello" << endl; }

컴파일 시 표준 에러 (stderr) 메시지

quality.cpp: In function 'int main()':
quality.cpp:4:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 |   cout << "Hello" << endl;
      |   ^~~~
      |   std::cout
In file included from quality.cpp:1:
/usr/include/c++/11/iostream:61:18: note: 'std::cout' declared here
   61 |   extern ostream cout;          /// Linked to standard output
      |                  ^~~~
quality.cpp:4:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    4 |   cout << "Hello" << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/11/iostream:39,
                 from quality.cpp:1:
/usr/include/c++/11/ostream:684:5: note: 'std::endl' declared here
  684 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~