Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1063 约瑟夫问题
语言
C++
递交时间
2022-09-18 10:10:26
评测时间
2022-09-18 10:10:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes