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_24064532_28649.c: In function 'main':
0_0_24064532_28649.c:18:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int k=0;k<3000;k++)
  ^
0_0_24064532_28649.c:18:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_24064532_28649.c:21:10: error: redefinition of 'k'
  for(int k=0;k<C-1;k++)
          ^
0_0_24064532_28649.c:18:10: note: previous definition of 'k' was here
  for(int k=0;k<3000;k++)
          ^
0_0_24064532_28649.c:21:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int k=0;k<C-1;k++)
  ^
0_0_24064532_28649.c:37:41: error: expected expression before '/' token
         break;                          //È¥³ý¶àÓàλÊý
                                         ^
0_0_24064532_28649.c:37:41: error: stray '\310' in program
0_0_24064532_28649.c:37:41: error: stray '\245' in program
0_0_24064532_28649.c:37:41: error: stray '\263' in program
0_0_24064532_28649.c:37:41: error: stray '\375' in program
0_0_24064532_28649.c:37:41: error: stray '\266' in program
0_0_24064532_28649.c:37:41: error: stray '\340' in program
0_0_24064532_28649.c:37:41: error: stray '\323' in program
0_0_24064532_28649.c:37:41: error: stray '\340' in program
0_0_24064532_28649.c:37:41: error: stray '\316' in program
0_0_24064532_28649.c:37:41: error: stray '\273' in program
0_0_24064532_28649.c:37:41: error: stray '\312' in program
0_0_24064532_28649.c:37:41: error: stray '\375' in program
0_0_24064532_28649.c:39:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int k=0;k<=lenc;k++)
     ^
0_0_24064532_28649.c:47:11: error: redeclaration of 'i' with no linkage
   for(int i=2;i>=0;i--)
           ^
0_0_24064532_28649.c:14:9: note: previous declaration of 'i' was here
     int i, j;
         ^
0_0_24064532_28649.c:47:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int i=2;i>=0;i--)
   ^
0_0_24064532_28649.c:52:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int k=0;k<n;k++)
   ^


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-04 23:05:29, Gzip enabled