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_33983395_12935.c: In function 'main':
0_0_33983395_12935.c:10:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=0;i<n;i++)
         ^
0_0_33983395_12935.c:10:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_33983395_12935.c:15:17: error: redefinition of 'i'
         for(int i=0;i<n;i++)
                 ^
0_0_33983395_12935.c:10:17: note: previous definition of 'i' was here
         for(int i=0;i<n;i++)
                 ^
0_0_33983395_12935.c:15:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=0;i<n;i++)
         ^
0_0_33983395_12935.c:16:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
             for(int j=0;j<m;j++)
             ^
0_0_33983395_12935.c:18:17: error: redefinition of 'i'
         for(int i=0;i<n;i++)
                 ^
0_0_33983395_12935.c:15:17: note: previous definition of 'i' was here
         for(int i=0;i<n;i++)
                 ^
0_0_33983395_12935.c:18:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=0;i<n;i++)
         ^
0_0_33983395_12935.c:21:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
             for(int j=0;j<m;j++)
             ^
0_0_33983395_12935.c:25:17: error: redefinition of 'i'
         for(int i=0;i<m;i++)
                 ^
0_0_33983395_12935.c:18:17: note: previous definition of 'i' was here
         for(int i=0;i<n;i++)
                 ^
0_0_33983395_12935.c:25:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=0;i<m;i++)
         ^
0_0_33983395_12935.c:28:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
             for(int j=0;j<n;j++)
             ^
0_0_33983395_12935.c:33:17: error: redefinition of 'i'
         for(int i=0;i<n;i++)
                 ^
0_0_33983395_12935.c:25:17: note: previous definition of 'i' was here
         for(int i=0;i<m;i++)
                 ^
0_0_33983395_12935.c:33:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=0;i<n;i++)
         ^
0_0_33983395_12935.c:35:45: error: expected expression before '/' token
             if(i==0)                        //用分支判断避免每行末尾多一个空格 
                                             ^
0_0_33983395_12935.c:35:45: error: stray '\323' in program
0_0_33983395_12935.c:35:45: error: stray '\303' in program
0_0_33983395_12935.c:35:45: error: stray '\267' in program
0_0_33983395_12935.c:35:45: error: stray '\326' in program
0_0_33983395_12935.c:35:45: error: stray '\326' in program
0_0_33983395_12935.c:35:45: error: stray '\247' in program
0_0_33983395_12935.c:35:45: error: stray '\305' in program
0_0_33983395_12935.c:35:45: error: stray '\320' in program
0_0_33983395_12935.c:35:45: error: stray '\266' in program
0_0_33983395_12935.c:35:45: error: stray '\317' in program
0_0_33983395_12935.c:35:45: error: stray '\261' in program
0_0_33983395_12935.c:35:45: error: stray '\334' in program
0_0_33983395_12935.c:35:45: error: stray '\303' in program
0_0_33983395_12935.c:35:45: error: stray '\342' in program
0_0_33983395_12935.c:35:45: error: stray '\303' in program
0_0_33983395_12935.c:35:45: error: stray '\277' in program
0_0_33983395_12935.c:35:45: error: stray '\320' in program
0_0_33983395_12935.c:35:45: error: stray '\320' in program
0_0_33983395_12935.c:35:45: error: stray '\304' in program
0_0_33983395_12935.c:35:45: error: stray '\251' in program
0_0_33983395_12935.c:35:45: error: stray '\316' in program
0_0_33983395_12935.c:35:45: error: stray '\262' in program
0_0_33983395_12935.c:35:45: error: stray '\266' in program
0_0_33983395_12935.c:35:45: error: stray '\340' in program
0_0_33983395_12935.c:35:45: error: stray '\322' in program
0_0_33983395_12935.c:35:45: error: stray '\273' in program
0_0_33983395_12935.c:35:45: error: stray '\270' in program
0_0_33983395_12935.c:35:45: error: stray '\366' in program
0_0_33983395_12935.c:35:45: error: stray '\277' in program
0_0_33983395_12935.c:35:45: error: stray '\325' in program
0_0_33983395_12935.c:35:45: error: stray '\270' in program
0_0_33983395_12935.c:35:45: error: stray '\361' in program
0_0_33983395_12935.c:41:17: error: redefinition of 'i'
         for(int i=0;i<m;i++)
                 ^
0_0_33983395_12935.c:33:17: note: previous definition of 'i' was here
         for(int i=0;i<n;i++)
                 ^
0_0_33983395_12935.c:41:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=0;i<m;i++)
         ^
0_0_33983395_12935.c:43:45: error: expected expression before '/' token
             if(i==0)                        //用分支判断避免每行末尾多一个空格
                                             ^
0_0_33983395_12935.c:43:45: error: stray '\323' in program
0_0_33983395_12935.c:43:45: error: stray '\303' in program
0_0_33983395_12935.c:43:45: error: stray '\267' in program
0_0_33983395_12935.c:43:45: error: stray '\326' in program
0_0_33983395_12935.c:43:45: error: stray '\326' in program
0_0_33983395_12935.c:43:45: error: stray '\247' in program
0_0_33983395_12935.c:43:45: error: stray '\305' in program
0_0_33983395_12935.c:43:45: error: stray '\320' in program
0_0_33983395_12935.c:43:45: error: stray '\266' in program
0_0_33983395_12935.c:43:45: error: stray '\317' in program
0_0_33983395_12935.c:43:45: error: stray '\261' in program
0_0_33983395_12935.c:43:45: error: stray '\334' in program
0_0_33983395_12935.c:43:45: error: stray '\303' in program
0_0_33983395_12935.c:43:45: error: stray '\342' in program
0_0_33983395_12935.c:43:45: error: stray '\303' in program
0_0_33983395_12935.c:43:45: error: stray '\277' in program
0_0_33983395_12935.c:43:45: error: stray '\320' in program
0_0_33983395_12935.c:43:45: error: stray '\320' in program
0_0_33983395_12935.c:43:45: error: stray '\304' in program
0_0_33983395_12935.c:43:45: error: stray '\251' in program
0_0_33983395_12935.c:43:45: error: stray '\316' in program
0_0_33983395_12935.c:43:45: error: stray '\262' in program
0_0_33983395_12935.c:43:45: error: stray '\266' in program
0_0_33983395_12935.c:43:45: error: stray '\340' in program
0_0_33983395_12935.c:43:45: error: stray '\322' in program
0_0_33983395_12935.c:43:45: error: stray '\273' in program
0_0_33983395_12935.c:43:45: error: stray '\270' in program
0_0_33983395_12935.c:43:45: error: stray '\366' in program
0_0_33983395_12935.c:43:45: error: stray '\277' in program
0_0_33983395_12935.c:43:45: error: stray '\325' in program
0_0_33983395_12935.c:43:45: error: stray '\270' in program
0_0_33983395_12935.c:43:45: error: stray '\361' in program
0_0_33983395_12935.c:49:17: error: redefinition of 'i'
         for(int i=0;i<n;i++)
                 ^
0_0_33983395_12935.c:41:17: note: previous definition of 'i' was here
         for(int i=0;i<m;i++)
                 ^
0_0_33983395_12935.c:49:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i=0;i<n;i++)
         ^
0_0_33983395_12935.c:52:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
             for(int j=0;j<m;j++)
             ^


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-09-21 22:42:21, Gzip enabled