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_30473258_28712.cpp:12:1: error: expected initializer before 'int'
 int cnt;
 ^
0_0_30473258_28712.cpp: In function 'bool chk(long long int)':
0_0_30473258_28712.cpp:46:11: error: 'cnt' was not declared in this scope
  build(1, cnt, 1);
           ^
0_0_30473258_28712.cpp:50:25: error: 'b' was not declared in this scope
   int pos = lower_bound(b + 1, b + 1 + cnt, b[sum[i]]-mid)-b; // sum[j] µÄλÖà pos - cnt
                         ^
0_0_30473258_28712.cpp: In function 'int main()':
0_0_30473258_28712.cpp:65:52: error: 'b' was not declared in this scope
    scanf("%d", a + i), sum[i] = sum[i - 1] + a[i], b[i] = sum[i];
                                                    ^
0_0_30473258_28712.cpp:66:8: error: 'b' was not declared in this scope
   sort(b + 1, b + 1 + n);
        ^
0_0_30473258_28712.cpp:67:3: error: 'cnt' was not declared in this scope
   cnt = unique(b + 1, b + 1 + n) - b - 1;
   ^


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-29 05:31:48, Gzip enabled