foo.cc:1:2: error: invalid preprocessing directive #inc
1 | #inc#include <iostream>
| ^~~
foo.cc: In function 'int main()':
foo.cc:9:9: error: 'cin' was not declared in this scope
9 | cin>>num>>out;
| ^~~
foo.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
3 | #include <cmath>
+++ |+#include <iostream>
4 | using namespace std;
foo.cc:24:33: error: 'cout' was not declared in this scope
24 | cout<<i+1<<" ";
| ^~~~
foo.cc:24:33: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc:38:25: error: 'cout' was not declared in this scope
38 | cout<<i+1;
| ^~~~
foo.cc:38:25: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
foo.cc: At global scope:
foo.cc:42:9: error: expected unqualified-id before 'return'
42 | } return 0;
| ^~~~~~
foo.cc:43:1: error: expected declaration before '}' token
43 | }
| ^
[Hydro](https://hydro.ac)提供评测服务