fork download
  1. #include <iostream>
  2. //using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. std::cout << "a" << endl;
  7. return 0;
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:6:22: error: 'endl' was not declared in this scope
  std::cout << "a" << endl;
                      ^
prog.cpp:6:22: note: suggested alternative:
In file included from /usr/include/c++/4.9/iostream:39:0,
                 from prog.cpp:1:
/usr/include/c++/4.9/ostream:564:5: note:   'std::endl'
     endl(basic_ostream<_CharT, _Traits>& __os)
     ^
stdout
Standard output is empty