F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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]);
                                   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 05:39:09, Gzip enabled