Submission #2820456


Source Code Expand

#include<bits/stdc++.h>
int main(){
    cout<<1<<endl;
    cout<<"1 2 3"<<endl;
}

Submission Info

Submission Time
Task A - 役人
User zengsiqi
Language C++ (GCC 5.4.1)
Score 0
Code Size 85 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:3:5: error: ‘cout’ was not declared in this scope
     cout<<1<<endl;
     ^
./Main.cpp:3:5: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:74:0,
                 from ./Main.cpp:1:
/usr/include/c++/5/iostream:61:18: note:   ‘std::cout’
   extern ostream cout;  /// Linked to standard output
                  ^
./Main.cpp:3:14: error: ‘endl’ was not declared in this scope
     cout<<1<<endl;
              ^
./Main.cpp:3:14: note: suggested alternative:
In file included from /usr/include/c++/5/istream:39:0,
                 from /usr/include/c++/5/sstream:38,
                 from /usr/include/c++/5/complex:45,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:66,
                 from ./Main.cpp:1:
/usr/include/c++/5/ostream:590:5: note:   ‘std::endl’
     endl(basic_ostream<_CharT, _Traits>& __os)
     ^