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_28988371_30300.cpp:63:12: error: expected unqualified-id before '[' token
 int tot_va;[mn];
            ^
0_0_28988371_30300.cpp: In function 'void add(int, int)':
0_0_28988371_30300.cpp:67:9: error: 'tot_val' was not declared in this scope
     pos[tot_val[x]]-=mid[x];
         ^
0_0_28988371_30300.cpp: In function 'void solve()':
0_0_28988371_30300.cpp:80:21: error: 'tot_val' was not declared in this scope
  rep(q,0,n)pos[q]=0,tot_val[q]=0,used[q]=0,pos[-q]=0;
                     ^
0_0_28988371_30300.cpp: In function 'void solve1()':
0_0_28988371_30300.cpp:96:21: error: 'tot_val' was not declared in this scope
  rep(q,0,n)pos[q]=0,tot_val[q]=0,pos[-q]=0;
                     ^


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-25 04:03:46, Gzip enabled