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_30402945_25302.cpp: In function 'int main()':
0_0_30402945_25302.cpp:11:3: error: 'll' was not declared in this scope
   ll cnt=1, ans=0;
   ^
0_0_30402945_25302.cpp:13:40: error: 'ans' was not declared in this scope
   for(int i=0;i<n;++i){scanf("%d",a+i);ans+=a[i];d[i]=k-(a[i])%k;}
                                        ^
0_0_30402945_25302.cpp:14:23: error: 'cnt' was not declared in this scope
   for(int i=0;i<n;++i)cnt+=a[i]/k;
                       ^
0_0_30402945_25302.cpp:16:19: error: 'cnt' was not declared in this scope
   for(int i=0;i<n-cnt;++i)ans+=d[i];
                   ^
0_0_30402945_25302.cpp:16:27: error: 'ans' was not declared in this scope
   for(int i=0;i<n-cnt;++i)ans+=d[i];
                           ^
0_0_30402945_25302.cpp:17:17: error: 'ans' was not declared in this scope
   printf("%d\n",ans+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-25 13:11:26, Gzip enabled