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_37663763_1705.c:9:5: error: variably modified 'wa' at file scope
 int wa[N*3],wb[N*3],wv[N*3],wss[N*3];
     ^
0_0_37663763_1705.c:9:13: error: variably modified 'wb' at file scope
 int wa[N*3],wb[N*3],wv[N*3],wss[N*3];
             ^
0_0_37663763_1705.c:9:21: error: variably modified 'wv' at file scope
 int wa[N*3],wb[N*3],wv[N*3],wss[N*3];
                     ^
0_0_37663763_1705.c:9:29: error: variably modified 'wss' at file scope
 int wa[N*3],wb[N*3],wv[N*3],wss[N*3];
                             ^
0_0_37663763_1705.c:10:6: error: variably modified 's' at file scope
 char s[N*3];
      ^
0_0_37663763_1705.c:11:5: error: variably modified 'sa' at file scope
 int sa[N*3],Rank[N*3];
     ^
0_0_37663763_1705.c:11:13: error: variably modified 'Rank' at file scope
 int sa[N*3],Rank[N*3];
             ^
0_0_37663763_1705.c:12:5: error: variably modified 'str' at file scope
 int str[N*3];
     ^
0_0_37663763_1705.c: In function 'da':
0_0_37663763_1705.c:57:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=n;i<n*3;i++)
     ^
0_0_37663763_1705.c:57:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_37663763_1705.c:60:9: error: redeclaration of 'i' with no linkage
     int i,j,k=0;
         ^
0_0_37663763_1705.c:57:13: note: previous definition of 'i' was here
     for(int i=n;i<n*3;i++)
             ^
0_0_37663763_1705.c: In function 'solve':
0_0_37663763_1705.c:69:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=0;i<len;i++) str[i]=s[i]-'a'+1;
     ^
0_0_37663763_1705.c:76:4: error: expected expression before '/' token
    // for(int i=0;i<len;i++) cout<<Rank[i]<<' ';
    ^
0_0_37663763_1705.c:77:3: error: expected expression before '/' token
   //  cout<<endl;
   ^
0_0_37663763_1705.c:78:13: error: redefinition of 'i'
     for(int i=1;i<len;i++){
             ^
0_0_37663763_1705.c:69:13: note: previous definition of 'i' was here
     for(int i=0;i<len;i++) str[i]=s[i]-'a'+1;
             ^
0_0_37663763_1705.c:78:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i=1;i<len;i++){
     ^
0_0_37663763_1705.c:87:8: error: expected expression before '/' token
        // cout<<now<<' ';
        ^
0_0_37663763_1705.c:89:9: error: expected expression before '/' token
         //cout<<ans<<endl;
         ^


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 02:55:21, Gzip enabled