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_35358966_9613.c: In function 'fun':
0_0_35358966_9613.c:12:4: error: expected expression before '/' token
 {  //printf("%d %d ",sum,count1);
    ^
0_0_35358966_9613.c:13:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=sum-1;i>=1;i--)
     ^
0_0_35358966_9613.c:13:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_35358966_9613.c:18:13: error: redefinition of 'i'
     for(int i=1;i<b[x];i++)
             ^
0_0_35358966_9613.c:13:13: note: previous definition of 'i' was here
     for(int i=sum-1;i>=1;i--)
             ^
0_0_35358966_9613.c:18:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=1;i<b[x];i++)
     ^
0_0_35358966_9613.c:20:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int j=1;j<sum;j++)
         ^
0_0_35358966_9613.c: In function 'fun1':
0_0_35358966_9613.c:29:4: error: expected expression before '/' token
 {  //printf("%d %d ",sum,count1);
    ^
0_0_35358966_9613.c:30:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=sum;i>1;i--)
     ^
0_0_35358966_9613.c:35:13: error: redefinition of 'i'
     for(int i=1;i<abs(b[x]);i++)
             ^
0_0_35358966_9613.c:30:13: note: previous definition of 'i' was here
     for(int i=sum;i>1;i--)
             ^
0_0_35358966_9613.c:35:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=1;i<abs(b[x]);i++)
     ^
0_0_35358966_9613.c:37:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int j=sum;j>1;j--)
         ^
0_0_35358966_9613.c: In function 'main':
0_0_35358966_9613.c:49:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=1;i<=n;i++)
     ^
0_0_35358966_9613.c:54:15: error: redefinition of 'i'
       for(int i=1;i<=n;i++)
               ^
0_0_35358966_9613.c:49:13: note: previous definition of 'i' was here
     for(int i=1;i<=n;i++)
             ^
0_0_35358966_9613.c:54:7: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
       for(int i=1;i<=n;i++)
       ^
0_0_35358966_9613.c:59:16: error: redefinition of 'i'
        for(int i=1;i<=m;i++)
                ^
0_0_35358966_9613.c:54:15: note: previous definition of 'i' was here
       for(int i=1;i<=n;i++)
               ^
0_0_35358966_9613.c:59:8: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
        for(int i=1;i<=m;i++)
        ^
0_0_35358966_9613.c:63:15: error: redefinition of 'i'
       for(int i=1;i<=m;i++)
               ^
0_0_35358966_9613.c:59:16: note: previous definition of 'i' was here
        for(int i=1;i<=m;i++)
                ^
0_0_35358966_9613.c:63:7: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
       for(int i=1;i<=m;i++)
       ^
0_0_35358966_9613.c:69:15: error: redefinition of 'i'
       for(int i=1;i<=n;i++)
               ^
0_0_35358966_9613.c:63:15: note: previous definition of 'i' was here
       for(int i=1;i<=m;i++)
               ^
0_0_35358966_9613.c:69:7: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
       for(int i=1;i<=n;i++)
       ^
0_0_35358966_9613.c:71:11: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
           for(int j=1;j<=a[i];j++)
           ^
0_0_35358966_9613.c:74:14: error: expected expression before '/' token
              // printf("aa\n");
              ^
0_0_35358966_9613.c:76:19: error: redefinition of 'j'
           for(int j=1;j<=am[i];j++)
                   ^
0_0_35358966_9613.c:71:19: note: previous definition of 'j' was here
           for(int j=1;j<=a[i];j++)
                   ^
0_0_35358966_9613.c:76:11: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
           for(int j=1;j<=am[i];j++)
           ^
0_0_35358966_9613.c:79:16: error: expected expression before '/' token
                // printf("bb\n");
                ^
0_0_35358966_9613.c:83:19: error: redefinition of 'i'
           for(int i=1;i<=m;i++)
                   ^
0_0_35358966_9613.c:69:15: note: previous definition of 'i' was here
       for(int i=1;i<=n;i++)
               ^
0_0_35358966_9613.c:83:11: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
           for(int i=1;i<=m;i++)
           ^
0_0_35358966_9613.c:86:14: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
              for(int j=1;j<=bm[i];j++)
              ^
0_0_35358966_9613.c:94:17: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
                 for(int j=1;j<=bm[i];j++)
                 ^
0_0_35358966_9613.c:103:17: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
                 for(int j=1;j<=bm[i];j++)
                 ^
0_0_35358966_9613.c:106:18: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
                  for(int i=1;i<=sum;i++)
                  ^
0_0_35358966_9613.c:116:7: error: expected expression before '/' token
       //  printf("%d\n",count1);
       ^
0_0_35358966_9613.c:117:13: error: redefinition of 'i'
         int i=1;
             ^
0_0_35358966_9613.c:83:19: note: previous definition of 'i' was here
           for(int i=1;i<=m;i++)
                   ^
0_0_35358966_9613.c:123:21: error: redefinition of 'i'
             for(int i=1;i<=sum;i++)
                     ^
0_0_35358966_9613.c:117:13: note: previous definition of 'i' was here
         int i=1;
             ^
0_0_35358966_9613.c:123:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
             for(int i=1;i<=sum;i++)
             ^
0_0_35358966_9613.c:125:15: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
               for(int j=1;j<count1-1;j++)
               ^


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 07:38:17, Gzip enabled