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_30230139_27308.cpp: In function 'int main()':
0_0_30230139_27308.cpp:85:64: error: array must be initialized with a brace-enclosed initializer
         int p[0] = val[query(root[l-1], root[r], r-l+1, 1, n)].x;
                                                                ^
0_0_30230139_27308.cpp:86:16: error: conflicting declaration 'int p [1]'
         int p[1] = val[query(root[l-1], root[r], r-l, 1, n)].x;
                ^
0_0_30230139_27308.cpp:85:13: note: previous declaration as 'int p [0]'
         int p[0] = val[query(root[l-1], root[r], r-l+1, 1, n)].x;
             ^
0_0_30230139_27308.cpp:87:16: error: conflicting declaration 'int p [2]'
         int p[2] = val[query(root[l-1], root[r], r-l-1, 1, n)].x;
                ^
0_0_30230139_27308.cpp:85:13: note: previous declaration as 'int p [0]'
         int p[0] = val[query(root[l-1], root[r], r-l+1, 1, n)].x;
             ^
0_0_30230139_27308.cpp:89:23: error: 'pa' was not declared in this scope
             cout<<(ll)pa + pb + pc<<endl;
                       ^
0_0_30230139_27308.cpp:89:28: error: 'pb' was not declared in this scope
             cout<<(ll)pa + pb + pc<<endl;
                            ^
0_0_30230139_27308.cpp:89:33: error: 'pc' was not declared in this scope
             cout<<(ll)pa + pb + pc<<endl;
                                 ^


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-09-30 10:48:30, Gzip enabled