0_0_27818310_14306.cpp:49:9: error: macro names must be identifiers
#define 200010
^
0_0_27818310_14306.cpp:51:8: error: 'MM' was not declared in this scope
VI adj[MM];
^
0_0_27818310_14306.cpp:52:16: error: 'MM' was not declared in this scope
int c[NN], val[MM];
^
0_0_27818310_14306.cpp:53:9: error: 'Mm' was not declared in this scope
INT ans[Mm];
^
0_0_27818310_14306.cpp:54:15: error: 'MM' was not declared in this scope
vector<pii> q[MM];
^
0_0_27818310_14306.cpp:55:8: error: 'MM' was not declared in this scope
int sz[MM];
^
0_0_27818310_14306.cpp: In function 'int calc(int, int)':
0_0_27818310_14306.cpp:61:24: error: 'val' was not declared in this scope
w[c[u]][ma[c[u]]++] = val[u];
^
0_0_27818310_14306.cpp:62:17: error: 'adj' was not declared in this scope
for(int i=0; i<adj[u].size(); i++) {
^
0_0_27818310_14306.cpp: In function 'int solve(int, int)':
0_0_27818310_14306.cpp:70:17: error: 'adj' was not declared in this scope
for(int i=0; i<adj[u].size(); i++) {
^
0_0_27818310_14306.cpp:74:3: error: 'sz' was not declared in this scope
sz[u] += sz[v];
^
0_0_27818310_14306.cpp:76:2: error: 'sz' was not declared in this scope
sz[u] += c[u];
^
0_0_27818310_14306.cpp:96:17: error: 'q' was not declared in this scope
for(int i=0; i<q[u].size(); i++) {
^
0_0_27818310_14306.cpp:101:3: error: 'ans' was not declared in this scope
ans[q[u][i].y] = MA;
^
0_0_27818310_14306.cpp: In function 'int main()':
0_0_27818310_14306.cpp:116:27: error: 'adj' was not declared in this scope
for(int i=1; i<=n; i++) adj[i].clear();
^
0_0_27818310_14306.cpp:120:4: error: 'adj' was not declared in this scope
adj[u].pb(v);
^
0_0_27818310_14306.cpp:123:36: error: 'val' was not declared in this scope
for(int i=1; i<=n; i++) gn(c[i], val[i]);
^
0_0_27818310_14306.cpp:126:27: error: 'q' was not declared in this scope
for(int i=1; i<=n; i++) q[i].clear();
^
0_0_27818310_14306.cpp:130:4: error: 'q' was not declared in this scope
q[u].pb(pii(val, i));
^
0_0_27818310_14306.cpp:133:35: error: 'ans' was not declared in this scope
for(int i=1; i<=Q; i++) println(ans[i]);
^
|