0_0_22871340_29545.cpp:5:7: error: 'maxn' does not name a type
const maxn=100100;
^
0_0_22871340_29545.cpp:6:8: error: 'maxn' was not declared in this scope
char s[maxn],a[maxn];
^
0_0_22871340_29545.cpp:6:16: error: 'maxn' was not declared in this scope
char s[maxn],a[maxn];
^
0_0_22871340_29545.cpp:15:6: error: 'maxn' was not declared in this scope
}tmp[maxn];
^
0_0_22871340_29545.cpp: In function 'int main()':
0_0_22871340_29545.cpp:18:19: error: 's' was not declared in this scope
while(scanf("%s",s)!=EOF){
^
0_0_22871340_29545.cpp:20:29: error: 'tmp' was not declared in this scope
for(i=0;i<s[i]!='\0';i++) tmp[c++]=node(s[i],i);
^
0_0_22871340_29545.cpp:21:8: error: 'tmp' was not declared in this scope
sort(tmp,tmp+c);
^
0_0_22871340_29545.cpp:23:20: error: 'a' was not declared in this scope
for(i=0;i<n;i++) a[c++]=s[tmp[i].index];
^
0_0_22871340_29545.cpp:24:3: error: 'a' was not declared in this scope
a[c]='\0';
^
|