Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_734_4294_20043.c: In function 'main':
1_734_4294_20043.c:12:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for ( int k = 1;k <= n; k++ )
     ^
1_734_4294_20043.c:12:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code


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-30 11:42:24, Gzip enabled