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_38455818_9774.cpp: In function 'bool check(long long int)':
0_0_38455818_9774.cpp:21:2: error: 'll' was not declared in this scope
  ll sum = 0;
  ^
0_0_38455818_9774.cpp:25:3: error: 'sum' was not declared in this scope
   sum += query(l, r);
   ^
0_0_38455818_9774.cpp:27:9: error: 'sum' was not declared in this scope
  return sum >= k;
         ^
0_0_38455818_9774.cpp: In function 'void solve()':
0_0_38455818_9774.cpp:32:3: error: 'll' was not declared in this scope
   ll sum = 0;
   ^
0_0_38455818_9774.cpp:33:45: error: 'sum' was not declared in this scope
   for (int i = 1; i <= n; i++) cin >> a[i], sum += a[i];
                                             ^
0_0_38455818_9774.cpp:35:7: error: 'sum' was not declared in this scope
   if (sum < k) {
       ^


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-27 03:45:25, Gzip enabled