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_25841272_8213.cpp: In function 'bool check(int)':
0_0_25841272_8213.cpp:7:2: error: 'll' was not declared in this scope
  ll cnt1=0,cnt2=0;
  ^
0_0_25841272_8213.cpp:9:20: error: 'cnt1' was not declared in this scope
    if (a[i]>mid+1) cnt1+=(ll)(a[i]-mid)/2;
                    ^
0_0_25841272_8213.cpp:10:23: error: 'cnt2' was not declared in this scope
    else if (a[i]<mid) cnt2+=(ll)mid-a[i];
                       ^
0_0_25841272_8213.cpp:11:9: error: 'cnt1' was not declared in this scope
  return cnt1>=cnt2;
         ^
0_0_25841272_8213.cpp:11:15: error: 'cnt2' was not declared in this scope
  return cnt1>=cnt2;
               ^


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-26 16:27:06, Gzip enabled