Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_734_1222_13713.c: In function 'mian':
1_734_1222_13713.c:6:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int tk=1;tk<=t;tk++)
  ^
1_734_1222_13713.c:6:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
1_734_1222_13713.c:10:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int i=0;i<n;i++)
   ^
1_734_1222_13713.c:20:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for(int i=0;i<n-1;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-11-17 18:45:43, Gzip enabled