Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_734_1451_30502.c: In function 'main':
1_734_1451_30502.c:8:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int cas=1; cas<=T; cas++)
     ^
1_734_1451_30502.c:8:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
1_734_1451_30502.c:13:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=1; i<=n; i++)
         ^
1_734_1451_30502.c:15:17: error: redefinition of 'i'
         for(int i=2; i<=n; i++)
                 ^
1_734_1451_30502.c:13:17: note: previous definition of 'i' was here
         for(int i=1; i<=n; i++)
                 ^
1_734_1451_30502.c:15:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=2; i<=n; i++)
         ^


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-12-02 15:30:48, Gzip enabled