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_19635882_26403.cpp:3:5: error: 'string' does not name a type
     string name;
     ^
0_0_19635882_26403.cpp:6:4: error: 'maxn' was not declared in this scope
 }s[maxn];
    ^
0_0_19635882_26403.cpp: In function 'int main()':
0_0_19635882_26403.cpp:17:24: error: 'scanf' was not declared in this scope
     while(scanf("%d",&n)!=EOF)
                        ^
0_0_19635882_26403.cpp:17:27: error: 'EOF' was not declared in this scope
     while(scanf("%d",&n)!=EOF)
                           ^
0_0_19635882_26403.cpp:21:13: error: 'string' was not declared in this scope
             string a;
             ^
0_0_19635882_26403.cpp:22:13: error: 'cin' was not declared in this scope
             cin>>a;
             ^
0_0_19635882_26403.cpp:22:18: error: 'a' was not declared in this scope
             cin>>a;
                  ^
0_0_19635882_26403.cpp:23:13: error: 's' was not declared in this scope
             s[i].name=a;
             ^
0_0_19635882_26403.cpp:35:14: error: 's' was not declared in this scope
         sort(s,s+n,cmp);
              ^
0_0_19635882_26403.cpp:35:23: error: 'sort' was not declared in this scope
         sort(s,s+n,cmp);
                       ^
0_0_19635882_26403.cpp:36:9: error: 'cout' was not declared in this scope
         cout<<s[0].name<<" "<<s[0].num<<" "<<s[0].time<<endl;
         ^
0_0_19635882_26403.cpp:36:57: error: 'endl' was not declared in this scope
         cout<<s[0].name<<" "<<s[0].num<<" "<<s[0].time<<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-07-08 21:28:09, Gzip enabled