icc.cpp:1:0: error: unterminated #ifndef
#ifndef __GRADER_CPP__
icc.cpp:8:1: error: 'vector' does not name a type
vector<int> P[maxn];
^~~~~~
icc.cpp:12:9: error: 'vector' was not declared in this scope
int Cal(vector<int> a , vector<int> b)
^~~~~~
icc.cpp:12:16: error: expected primary-expression before 'int'
int Cal(vector<int> a , vector<int> b)
^~~
icc.cpp:12:25: error: 'vector' was not declared in this scope
int Cal(vector<int> a , vector<int> b)
^~~~~~
icc.cpp:12:32: error: expected primary-expression before 'int'
int Cal(vector<int> a , vector<int> b)
^~~
icc.cpp:12:38: error: expression list treated as compound expression in initializer [-fpermissive]
int Cal(vector<int> a , vector<int> b)
^
icc.cpp: In function 'void run(int)':
icc.cpp:29:34: error: 'P' was not declared in this scope
for(int i = 1 ; i <= n ; ++i)P[i].push_back(i) , papa[i] = i;
^
icc.cpp:32:9: error: 'vector' was not declared in this scope
vector<int> a , b;
^~~~~~
icc.cpp:32:16: error: expected primary-expression before 'int'
vector<int> a , b;
^~~
icc.cpp:37:45: error: 'P' was not declared in this scope
if((k >> j) & 1)for(int c : P[k])a.push_back(c);
^
icc.cpp:37:50: error: 'a' was not declared in this scope
if((k >> j) & 1)for(int c : P[k])a.push_back(c);
^
icc.cpp:38:34: error: 'P' was not declared in this scope
else for(int c : P[k])b.push_back(c);
^
icc.cpp:38:39: error: 'b' was not declared in this scope
else for(int c : P[k])b.push_back(c);
^
icc.cpp:41:18: error: 'a' was not declared in this scope
if(query(a.size(),b.size(),a.data(),b.data()));
^
icc.cpp:41:27: error: 'b' was not declared in this scope
if(query(a.size(),b.size(),a.data(),b.data()));
^
icc.cpp:42:22: error: 'a' was not declared in this scope
int u = Cal(a , b);
^
icc.cpp:42:26: error: 'b' was not declared in this scope
int u = Cal(a , b);
^
icc.cpp:42:27: error: 'Cal' cannot be used as a function
int u = Cal(a , b);
^
icc.cpp:43:26: error: 'Cal' cannot be used as a function
int v = Cal(b , a);
^
icc.cpp:47:18: error: 'swap' was not declared in this scope
if(u > v)swap(u,v);
^~~~
icc.cpp:48:21: error: 'P' was not declared in this scope
for(int c : P[v])papa[c] = u , P[u].push_back(c);
^