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_29612897_11625.c: In function 'chii_toitsu':
0_0_29612897_11625.c:7:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for ( int i = 1; i < 10; i++ )
  ^
0_0_29612897_11625.c:7:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_29612897_11625.c:10:12: error: redefinition of 'i'
  for ( int i = 1; i < 10; i++ )
            ^
0_0_29612897_11625.c:7:12: note: previous definition of 'i' was here
  for ( int i = 1; i < 10; i++ )
            ^
0_0_29612897_11625.c:10:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for ( int i = 1; i < 10; i++ )
  ^
0_0_29612897_11625.c:13:12: error: redefinition of 'i'
  for ( int i = 1; i < 10; i++ )
            ^
0_0_29612897_11625.c:10:12: note: previous definition of 'i' was here
  for ( int i = 1; i < 10; i++ )
            ^
0_0_29612897_11625.c:13:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for ( int i = 1; i < 10; i++ )
  ^
0_0_29612897_11625.c:16:12: error: redefinition of 'i'
  for ( int i = 1; i < 8; i++ )
            ^
0_0_29612897_11625.c:13:12: note: previous definition of 'i' was here
  for ( int i = 1; i < 10; i++ )
            ^
0_0_29612897_11625.c:16:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for ( int i = 1; i < 8; i++ )
  ^
0_0_29612897_11625.c: In function 'kokushi_muso':
0_0_29612897_11625.c:27:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for ( int i = 1; i < 8; i++ )
  ^
0_0_29612897_11625.c: In function 'lalala2':
0_0_29612897_11625.c:37:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for ( int i = 0; i < 10; i++ )
  ^
0_0_29612897_11625.c:62:12: error: redefinition of 'i'
  for ( int i = 0; i < 10; i++ )
            ^
0_0_29612897_11625.c:37:12: note: previous definition of 'i' was here
  for ( int i = 0; i < 10; i++ )
            ^
0_0_29612897_11625.c:62:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for ( int i = 0; i < 10; i++ )
  ^
0_0_29612897_11625.c: In function 'lalala1':
0_0_29612897_11625.c:128:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int i=0;i<10;i++)
  ^
0_0_29612897_11625.c:136:12: error: redefinition of 'i'
  for ( int i = 0; i < 10; i++ )
            ^
0_0_29612897_11625.c:128:10: note: previous definition of 'i' was here
  for(int i=0;i<10;i++)
          ^
0_0_29612897_11625.c:136:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for ( int i = 0; i < 10; i++ )
  ^
0_0_29612897_11625.c: In function 'main':
0_0_29612897_11625.c:173:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for ( int j = 0; j < m; j++ )
  ^
0_0_29612897_11625.c:182:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for ( int i = 0; i < 13; i++ )
   ^
0_0_29612897_11625.c:201:13: error: redefinition of 'i'
   for ( int i = 1; i < 10; i++ )
             ^
0_0_29612897_11625.c:182:13: note: previous definition of 'i' was here
   for ( int i = 0; i < 13; i++ )
             ^
0_0_29612897_11625.c:201:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for ( int i = 1; i < 10; i++ )
   ^
0_0_29612897_11625.c:243:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for ( int i = 1; i < 10; i++ )
    ^
0_0_29612897_11625.c:248:14: error: redefinition of 'i'
    for ( int i = 1; i < 10; i++ )
              ^
0_0_29612897_11625.c:243:14: note: previous definition of 'i' was here
    for ( int i = 1; i < 10; i++ )
              ^
0_0_29612897_11625.c:248:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for ( int i = 1; i < 10; i++ )
    ^
0_0_29612897_11625.c:253:14: error: redefinition of 'i'
    for ( int i = 1; i < 10; i++ )
              ^
0_0_29612897_11625.c:248:14: note: previous definition of 'i' was here
    for ( int i = 1; i < 10; i++ )
              ^
0_0_29612897_11625.c:253:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for ( int i = 1; i < 10; i++ )
    ^
0_0_29612897_11625.c:257:1: error: expected expression before '%' token
 %
 ^
0_0_29612897_11625.c:257:1: error: expected declaration or statement at end of input
0_0_29612897_11625.c:257:1: error: expected declaration or statement at end of input
0_0_29612897_11625.c:257:1: error: expected declaration or statement at end of input
0_0_29612897_11625.c:257:1: error: expected declaration or statement at end of input


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-27 00:54:15, Gzip enabled