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_26595762_24826.c: In function 'main':
0_0_26595762_24826.c:7:10: error: redeclaration of 'j' with no linkage
  for(int j=1;j<=T;j++)
          ^
0_0_26595762_24826.c:5:16: note: previous declaration of 'j' was here
  int T,m=0,max,j;
                ^
0_0_26595762_24826.c:7:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
  for(int j=1;j<=T;j++)
  ^
0_0_26595762_24826.c:7:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_26595762_24826.c:20:26: error: lvalue required as left operand of assignment
   len1>=len2?max=len1:max=len2;
                          ^
0_0_26595762_24826.c:23:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for(int i=0;i<len2;i++)
    ^
0_0_26595762_24826.c:25:12: error: redefinition of 'i'
    for(int i=0;i<max-len2;i++)
            ^
0_0_26595762_24826.c:23:12: note: previous definition of 'i' was here
    for(int i=0;i<len2;i++)
            ^
0_0_26595762_24826.c:25:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for(int i=0;i<max-len2;i++)
    ^
0_0_26595762_24826.c:27:12: error: redefinition of 'i'
    for(int i=0;i<max;i++)
            ^
0_0_26595762_24826.c:25:12: note: previous definition of 'i' was here
    for(int i=0;i<max-len2;i++)
            ^
0_0_26595762_24826.c:27:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for(int i=0;i<max;i++)
    ^
0_0_26595762_24826.c:32:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for(int i=0;i<len1;i++)
    ^
0_0_26595762_24826.c:34:12: error: redefinition of 'i'
    for(int i=0;i<max-len1;i++)
            ^
0_0_26595762_24826.c:32:12: note: previous definition of 'i' was here
    for(int i=0;i<len1;i++)
            ^
0_0_26595762_24826.c:34:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for(int i=0;i<max-len1;i++)
    ^
0_0_26595762_24826.c:36:12: error: redefinition of 'i'
    for(int i=0;i<max;i++)
            ^
0_0_26595762_24826.c:34:12: note: previous definition of 'i' was here
    for(int i=0;i<max-len1;i++)
            ^
0_0_26595762_24826.c:36:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for(int i=0;i<max;i++)
    ^
0_0_26595762_24826.c:40:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int i=max-2;i>=0;i--)
   ^
0_0_26595762_24826.c:48:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for(int i=max-1;i>=0;i--)
    ^
0_0_26595762_24826.c:54:12: error: redefinition of 'i'
    for(int i=0;i<max+1;i++)
            ^
0_0_26595762_24826.c:48:12: note: previous definition of 'i' was here
    for(int i=max-1;i>=0;i--)
            ^
0_0_26595762_24826.c:54:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for(int i=0;i<max+1;i++)
    ^
0_0_26595762_24826.c:61:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for(int i=0;i<max;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-26 16:35:27, Gzip enabled