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_36480517_1692.cpp:22:10: error: 'a' does not name a type
 int a[N];a
          ^
0_0_36480517_1692.cpp: In function 'void init()':
0_0_36480517_1692.cpp:29:37: error: 'w' was not declared in this scope
  for (int i=1;i<=n;i++) a[i]=read(),w[i]=0,V[i].clear();
                                     ^
0_0_36480517_1692.cpp:34:3: error: 'w' was not declared in this scope
   w[x]+=z;
   ^
0_0_36480517_1692.cpp: In function 'void add(ll, ll, ll)':
0_0_36480517_1692.cpp:53:2: error: 'w' was not declared in this scope
  w[u]+=t;
  ^
0_0_36480517_1692.cpp: In function 'int solve()':
0_0_36480517_1692.cpp:70:16: error: 'w' was not declared in this scope
   if (abs(a[i]^w[i])&1) return puts("NO");
                ^
0_0_36480517_1692.cpp:72:15: error: 'w' was not declared in this scope
   wsum[d[i]]+=w[i];
               ^
0_0_36480517_1692.cpp:86:8: error: 'w' was not declared in this scope
    if (w[t]>0) add(k,t,w[t]/2),add(k,t,w[t]/2);
        ^


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-30 06:18:16, Gzip enabled