Submission #308029

# Submission time Handle Problem Language Result Execution time Memory
308029 2020-09-29T23:04:39 Z avengers Split the sequence (APIO14_sequence) C++14
Compilation error
0 ms 0 KB
#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

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>'?