Submission #308029

#TimeUsernameProblemLanguageResultExecution timeMemory
308029avengersSplit the sequence (APIO14_sequence)C++14
Compilation error
0 ms0 KiB
#Include <bits/stdc++.h> using namespace std; int main(){ int a, b, c, d, e, f, g, h; cin>>a>>b>>c>>d>>e>>f>>g>>h; cout<<108<<'\n'<<1<<' '<<3<<' '<<5; }

Compilation message (stderr)

sequence.cpp:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include <bits/stdc++.h>
      |  ^~~~~~~
      |  include
sequence.cpp: In function 'int main()':
sequence.cpp:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a>>b>>c>>d>>e>>f>>g>>h;
      |   ^~~
sequence.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | #Include <bits/stdc++.h>
sequence.cpp:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<108<<'\n'<<1<<' '<<3<<' '<<5;
      |   ^~~~
sequence.cpp:6:3: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?