Submission #2236320


Source Code Expand

#include <iostream>

int main(void) {
    # dummy comment
    cout << 0 << endl;
}

Submission Info

Submission Time
Task D - 11
User vjudge4
Language C++14 (GCC 5.4.1)
Score 0
Code Size 82 Byte
Status CE

Compile Error

./Main.cpp:4:7: error: invalid preprocessing directive #dummy
     # dummy comment
       ^
./Main.cpp: In function ‘int main()’:
./Main.cpp:5:5: error: ‘cout’ was not declared in this scope
     cout << 0 << endl;
     ^
./Main.cpp:5:5: note: suggested alternative:
In file included from ./Main.cpp:1:0:
/usr/include/c++/5/iostream:61:18: note:   ‘std::cout’
   extern ostream cout;  /// Linked to standard output
                  ^
./Main.cpp:5:18: error: ‘endl’ was not declared in this scope
     cout << 0 << endl;
                  ^
./Main.cpp:5:18: note: suggested alternative:
In file included from /usr/include/c++/5/iostream:39:0,
                 from ./Main.cpp:1:
/usr/include/c++/5/ostream:590:5: note:   ‘std::endl’
     endl(basic_ostream<_CharT, _Traits>& __os)
     ^