potion.cpp:3:1: error: 'set' does not name a type
3 | set<int>adj[100010][450], F[100010], X;
| ^~~
potion.cpp:4:1: error: 'set' does not name a type
4 | set<int>::iterator it, it2;
| ^~~
potion.cpp: In function 'void curseChanges(int, int*, int*)':
potion.cpp:15:18: error: 'sqrt' was not declared in this scope
15 | b=(int)round(sqrt(u));
| ^~~~
potion.cpp:15:12: error: 'round' was not declared in this scope
15 | b=(int)round(sqrt(u));
| ^~~~~
potion.cpp:18:12: error: 'F' was not declared in this scope
18 | if(F[B[i]].find(A[i])==F[B[i]].end())
| ^
potion.cpp:32:21: error: 'it' was not declared in this scope; did you mean 'i'?
32 | for(it=F[j].begin();it!=F[j].end();it++)
| ^~
| i
potion.cpp:32:24: error: 'F' was not declared in this scope
32 | for(it=F[j].begin();it!=F[j].end();it++)
| ^
potion.cpp:34:21: error: 'adj' was not declared in this scope
34 | adj[j][i/b].insert(*it);
| ^~~
potion.cpp: In function 'int question(int, int, int)':
potion.cpp:45:12: error: 'adj' was not declared in this scope
45 | if(adj[B[i]][x].find(A[i])==adj[B[i]][x].end())
| ^~~
potion.cpp:57:8: error: 'adj' was not declared in this scope
57 | if(adj[s][x].size()==0||adj[e][x].size()==0)
| ^~~
potion.cpp:61:5: error: 'X' was not declared in this scope
61 | X.clear();
| ^
potion.cpp:62:9: error: 'it' was not declared in this scope; did you mean 'i'?
62 | for(it=adj[s][x].begin();it!=adj[s][x].end();it++)
| ^~
| i
potion.cpp:62:12: error: 'adj' was not declared in this scope
62 | for(it=adj[s][x].begin();it!=adj[s][x].end();it++)
| ^~~
potion.cpp:66:9: error: 'it' was not declared in this scope; did you mean 'i'?
66 | for(it=adj[e][x].begin();it!=adj[e][x].end();it++)
| ^~
| i
potion.cpp:66:12: error: 'adj' was not declared in this scope
66 | for(it=adj[e][x].begin();it!=adj[e][x].end();it++)
| ^~~
potion.cpp:68:9: error: 'it2' was not declared in this scope
68 | it2=X.lower_bound(H[*it]);
| ^~~
potion.cpp:70:22: error: 'abs' was not declared in this scope; did you mean 'ans'?
70 | ans=min(ans, abs(H[*it]-*it2));
| ^~~
| ans
potion.cpp:70:13: error: 'min' was not declared in this scope
70 | ans=min(ans, abs(H[*it]-*it2));
| ^~~
potion.cpp:78:12: error: 'adj' was not declared in this scope
78 | if(adj[B[i]][x].find(A[i])==adj[B[i]][x].end())
| ^~~