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_34720355_3862.cpp: In function 'int main()':
0_0_34720355_3862.cpp:36:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_34720355_3862.cpp:17:5: note: 'int main()' previously defined here
 int main(){
     ^
0_0_34720355_3862.cpp:43:52: error: 'struct cs' has no member named 'name'
 for(int i=0;i<n;i++) scanf("%s %s %d",s[i].id,s[i].name,&s[i].dig);
                                                    ^
0_0_34720355_3862.cpp:43:63: error: 'struct cs' has no member named 'dig'
 for(int i=0;i<n;i++) scanf("%s %s %d",s[i].id,s[i].name,&s[i].dig);
                                                               ^
0_0_34720355_3862.cpp:45:26: error: 'cmp_1' was not declared in this scope
 else if(c==2) sort(s,s+n,cmp_1);
                          ^
0_0_34720355_3862.cpp:46:26: error: 'cmp_2' was not declared in this scope
 else if(c==3) sort(s,s+n,cmp_2);
                          ^
0_0_34720355_3862.cpp:48:55: error: 'struct cs' has no member named 'name'
 for(int i=0;i<n;i++) printf("%s %s %d\n",s[i].id,s[i].name,s[i].dig);
                                                       ^
0_0_34720355_3862.cpp:48:65: error: 'struct cs' has no member named 'dig'
 for(int i=0;i<n;i++) printf("%s %s %d\n",s[i].id,s[i].name,s[i].dig);
                                                                 ^


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-28 17:18:54, Gzip enabled