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_22314958_25699.c: In function 'plusll':
0_0_22314958_25699.c:13:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=54; i>=0; i--)
     ^
0_0_22314958_25699.c:13:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_22314958_25699.c: In function 'multiplus':
0_0_22314958_25699.c:25:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=54; i>=0; i--)
     ^
0_0_22314958_25699.c:27:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int k=0;k<55;k++){anther[k]=0;}
         ^
0_0_22314958_25699.c:29:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int j = 54; j>=0; j--)
         ^
0_0_22314958_25699.c: In function 'init':
0_0_22314958_25699.c:47:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=0;i<55;i++){ tempss[i]=0; }
     ^
0_0_22314958_25699.c:51:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=0;i<55;i++){ tempss[i]=0; }
         ^
0_0_22314958_25699.c:53:17: error: redefinition of 'i'
         for(int i=0; i<N; i++)
                 ^
0_0_22314958_25699.c:51:17: note: previous definition of 'i' was here
         for(int i=0;i<55;i++){ tempss[i]=0; }
                 ^
0_0_22314958_25699.c:53:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=0; i<N; i++)
         ^
0_0_22314958_25699.c:55:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
             for(int j=0;j<55;j++){ multiplus_sum[j]=0; }
             ^
0_0_22314958_25699.c:59:17: error: redefinition of 'i'
         for(int i=0; i<55; i++)
                 ^
0_0_22314958_25699.c:53:17: note: previous definition of 'i' was here
         for(int i=0; i<N; i++)
                 ^
0_0_22314958_25699.c:59:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=0; i<55; i++)
         ^
0_0_22314958_25699.c: In function 'nn_mult':
0_0_22314958_25699.c:70:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=2; i<n; i++)
     ^
0_0_22314958_25699.c:72:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int j=0; j<55; j++){ nn_temp[j]=0; }
         ^
0_0_22314958_25699.c: In function 'output':
0_0_22314958_25699.c:79:5: error: unknown type name 'bool'
     bool flag = false;
     ^
0_0_22314958_25699.c:79:17: error: 'false' undeclared (first use in this function)
     bool flag = false;
                 ^
0_0_22314958_25699.c:79:17: note: each undeclared identifier is reported only once for each function it appears in
0_0_22314958_25699.c:80:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i = 0; i<=54; i++)
     ^
0_0_22314958_25699.c:92:20: error: 'true' undeclared (first use in this function)
             flag = true;
                    ^
0_0_22314958_25699.c: In function 'main':
0_0_22314958_25699.c:120:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=0; i<55; i++){ result[i]=0; }
         ^


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-22 22:30:39, Gzip enabled