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_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';
   ^


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-29 05:23:11, Gzip enabled