답안 #1104086

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1104086 2024-10-22T17:00:47 Z expert007 Cloud Computing (CEOI18_clo) C++17
컴파일 오류
0 ms 0 KB
#include "bits/stdc++.h"
int main(){
  cout << "hello world" << endl;
  
}

Compilation message

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)
      |     ^~~~