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_13588355_28343.c:7:1: error: unknown type name 'node'
 node a[100010];
 ^
0_0_13588355_28343.c:14:1: error: unknown type name 'Node'
 Node ma;
 ^
0_0_13588355_28343.c: In function 'main':
0_0_13588355_28343.c:19:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int i=0;i<t;++i)
  ^
0_0_13588355_28343.c:19:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_13588355_28343.c:22:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int j=0;j<n;++j)
   ^
0_0_13588355_28343.c:24:20: error: request for member 'sum' in something not a structure or union
    scanf("%d",&a[j].sum);
                    ^
0_0_13588355_28343.c:26:9: error: request for member 'end' in something not a structure or union
   a[n-1].end=n-1;
         ^
0_0_13588355_28343.c:27:5: error: request for member 'sum' in something not a structure or union
   ma.sum=a[n-1].sum;
     ^
0_0_13588355_28343.c:27:16: error: request for member 'sum' in something not a structure or union
   ma.sum=a[n-1].sum;
                ^
0_0_13588355_28343.c:28:5: error: request for member 'end' in something not a structure or union
   ma.end=n-1;
     ^
0_0_13588355_28343.c:29:5: error: request for member 'start' in something not a structure or union
   ma.start=n-1;
     ^
0_0_13588355_28343.c:30:11: error: redefinition of 'j'
   for(int j=n-2;j>=0;--j)
           ^
0_0_13588355_28343.c:22:11: note: previous definition of 'j' was here
   for(int j=0;j<n;++j)
           ^
0_0_13588355_28343.c:30:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int j=n-2;j>=0;--j)
   ^
0_0_13588355_28343.c:32:13: error: request for member 'sum' in something not a structure or union
    if(a[j+1].sum>0)
             ^
0_0_13588355_28343.c:34:9: error: request for member 'sum' in something not a structure or union
     a[j].sum+=a[j+1].sum;
         ^
0_0_13588355_28343.c:34:21: error: request for member 'sum' in something not a structure or union
     a[j].sum+=a[j+1].sum;
                     ^
0_0_13588355_28343.c:35:9: error: request for member 'end' in something not a structure or union
     a[j].end=a[j+1].end;
         ^
0_0_13588355_28343.c:35:20: error: request for member 'end' in something not a structure or union
     a[j].end=a[j+1].end;
                    ^
0_0_13588355_28343.c:39:9: error: request for member 'end' in something not a structure or union
     a[j].end=j;
         ^
0_0_13588355_28343.c:41:11: error: request for member 'sum' in something not a structure or union
    if(a[j].sum>=ma.sum)
           ^
0_0_13588355_28343.c:41:19: error: request for member 'sum' in something not a structure or union
    if(a[j].sum>=ma.sum)
                   ^
0_0_13588355_28343.c:43:7: error: request for member 'start' in something not a structure or union
     ma.start=j;
       ^
0_0_13588355_28343.c:44:7: error: request for member 'end' in something not a structure or union
     ma.end=a[j].end;
       ^
0_0_13588355_28343.c:44:16: error: request for member 'end' in something not a structure or union
     ma.end=a[j].end;
                ^
0_0_13588355_28343.c:45:7: error: request for member 'sum' in something not a structure or union
     ma.sum=a[j].sum;
       ^
0_0_13588355_28343.c:45:16: error: request for member 'sum' in something not a structure or union
     ma.sum=a[j].sum;
                ^
0_0_13588355_28343.c:51:28: error: request for member 'sum' in something not a structure or union
    printf("%d %d %d\n\n",ma.sum,ma.start+1,ma.end+1);
                            ^
0_0_13588355_28343.c:51:35: error: request for member 'start' in something not a structure or union
    printf("%d %d %d\n\n",ma.sum,ma.start+1,ma.end+1);
                                   ^
0_0_13588355_28343.c:51:46: error: request for member 'end' in something not a structure or union
    printf("%d %d %d\n\n",ma.sum,ma.start+1,ma.end+1);
                                              ^
0_0_13588355_28343.c:55:26: error: request for member 'sum' in something not a structure or union
    printf("%d %d %d\n",ma.sum,ma.start+1,ma.end+1);
                          ^
0_0_13588355_28343.c:55:33: error: request for member 'start' in something not a structure or union
    printf("%d %d %d\n",ma.sum,ma.start+1,ma.end+1);
                                 ^
0_0_13588355_28343.c:55:44: error: request for member 'end' in something not a structure or union
    printf("%d %d %d\n",ma.sum,ma.start+1,ma.end+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-10-06 05:53:56, Gzip enabled