0_0_39448468_12670.cpp:22:1: error: 'vector' does not name a type
22 | vector<int> prm; bool isp[M]; int mu[M];
| ^~~~~~
0_0_39448468_12670.cpp:25:1: error: 'vector' does not name a type
25 | vector<piu> d[N];
| ^~~~~~
0_0_39448468_12670.cpp: In function 'void linear_sieve(int)':
0_0_39448468_12670.cpp:30:29: error: 'prm' was not declared in this scope
30 | if(!isp[i]) prm.pb(i), mu[i]=-1;
| ^~~
0_0_39448468_12670.cpp:31:27: error: 'prm' was not declared in this scope
31 | for(int c:prm){
| ^~~
0_0_39448468_12670.cpp: At global scope:
0_0_39448468_12670.cpp:38:6: error: variable or field 'pre_work' declared void
38 | void pre_work(vector<piu> &S, int x){
| ^~~~~~~~
0_0_39448468_12670.cpp:38:15: error: 'vector' was not declared in this scope
38 | void pre_work(vector<piu> &S, int x){
| ^~~~~~
0_0_39448468_12670.cpp:6:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
5 | #include<algorithm>
+++ |+#include <vector>
6 | #define cs const
0_0_39448468_12670.cpp:38:25: error: expected primary-expression before '>' token
38 | void pre_work(vector<piu> &S, int x){
| ^
0_0_39448468_12670.cpp:38:28: error: 'S' was not declared in this scope
38 | void pre_work(vector<piu> &S, int x){
| ^
0_0_39448468_12670.cpp:38:31: error: expected primary-expression before 'int'
38 | void pre_work(vector<piu> &S, int x){
| ^~~
0_0_39448468_12670.cpp: In function 'void add(int)':
0_0_39448468_12670.cpp:48:22: error: 'd' was not declared in this scope
48 | for(auto c : d[x]){
| ^
0_0_39448468_12670.cpp: In function 'void del(int)':
0_0_39448468_12670.cpp:54:22: error: 'd' was not declared in this scope
54 | for(auto c : d[x]){
| ^
0_0_39448468_12670.cpp: In function 'void Main()':
0_0_39448468_12670.cpp:62:30: error: 'd' was not declared in this scope
62 | a[i]=read(); d[i].clear();
| ^
0_0_39448468_12670.cpp:63:17: error: 'pre_work' was not declared in this scope
63 | pre_work(d[i],a[i]);
| ^~~~~~~~
0_0_39448468_12670.cpp:65:34: error: 'sqrt' was not declared in this scope
65 | static int blk[N]; int S=sqrt(n);
| ^~~~
|