foo.cc:1:2: error: stray '#' in program
1 | 1#include<iostream>
| ^
foo.cc:1:1: error: expected unqualified-id before numeric constant
1 | 1#include<iostream>
| ^
foo.cc: In function 'int main()':
foo.cc:8:5: error: 'cin' was not declared in this scope
8 | cin>>n>>x;
| ^~~
foo.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include<cstdio>
+++ |+#include <iostream>
3 | using namespace std;
foo.cc:27:5: error: 'cout' was not declared in this scope
27 | cout<<sum<<endl;
| ^~~~
foo.cc:27:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc:27:16: error: 'endl' was not declared in this scope
27 | cout<<sum<<endl;
| ^~~~
foo.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
2 | #include<cstdio>
+++ |+#include <ostream>
3 | using namespace std;
[Hydro](https://hydro.ac)提供评测服务