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_35692886_29916.cpp:3:1: error: 'll' does not name a type
 ll sum[50],a[50],ans;
 ^
0_0_35692886_29916.cpp: In function 'void div(int, int, int)':
0_0_35692886_29916.cpp:5:13: error: 'ans' was not declared in this scope
  if(dif==0&&ans<su) {
             ^
0_0_35692886_29916.cpp:10:14: error: 'sum' was not declared in this scope
  if(abs(dif)>sum[p]) return;
              ^
0_0_35692886_29916.cpp:11:5: error: 'sum' was not declared in this scope
  if(sum[p]+su<ans) return;
     ^
0_0_35692886_29916.cpp:11:15: error: 'ans' was not declared in this scope
  if(sum[p]+su<ans) return;
               ^
0_0_35692886_29916.cpp:12:14: error: 'a' was not declared in this scope
  div(p-1,dif+a[p],su+a[p]);
              ^
0_0_35692886_29916.cpp: In function 'int main()':
0_0_35692886_29916.cpp:20:18: error: 'a' was not declared in this scope
    scanf("%lld",&a[i]);
                  ^
0_0_35692886_29916.cpp:21:13: error: 'sum' was not declared in this scope
    if(i==0) sum[i]=a[i];
             ^
0_0_35692886_29916.cpp:22:9: error: 'sum' was not declared in this scope
    else sum[i]=sum[i-1]+a[i];
         ^
0_0_35692886_29916.cpp:24:3: error: 'ans' was not declared in this scope
   ans=0;
   ^
0_0_35692886_29916.cpp:26:19: error: 'sum' was not declared in this scope
   printf("%lld\n",sum[n-1]-ans);
                   ^


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 10:47:20, Gzip enabled