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