Submission #84675

#TimeUsernameProblemLanguageResultExecution timeMemory
84675SirCenessSplit the sequence (APIO14_sequence)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> int main(){ cout << 10 << endl; }

Compilation message (stderr)

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