제출 #1104086

#제출 시각아이디문제언어결과실행 시간메모리
1104086expert007Cloud Computing (CEOI18_clo)C++17
컴파일 에러
0 ms0 KiB
#include "bits/stdc++.h" int main(){ cout << "hello world" << endl; }

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

clo.cpp: In function 'int main()':
clo.cpp:3:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    3 |   cout << "hello world" << endl;
      |   ^~~~
      |   std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:75,
                 from clo.cpp:1:
/usr/include/c++/10/iostream:61:18: note: 'std::cout' declared here
   61 |   extern ostream cout;  /// Linked to standard output
      |                  ^~~~
clo.cpp:3:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    3 |   cout << "hello world" << endl;
      |                            ^~~~
      |                            std::endl
In file included from /usr/include/c++/10/istream:39,
                 from /usr/include/c++/10/sstream:38,
                 from /usr/include/c++/10/complex:45,
                 from /usr/include/c++/10/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
                 from clo.cpp:1:
/usr/include/c++/10/ostream:681:5: note: 'std::endl' declared here
  681 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~