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_28239119_6278.cpp: In function 'int main()':
0_0_28239119_6278.cpp:30:28: error: 'sort' was not declared in this scope
       sort(a+1,a+n+1,my_cmp);
                            ^
0_0_28239119_6278.cpp: At global scope:
0_0_28239119_6278.cpp:55:8: error: redefinition of 'struct hw'
 struct hw
        ^
0_0_28239119_6278.cpp:5:8: error: previous definition of 'struct hw'
 struct hw
        ^
0_0_28239119_6278.cpp:58:9: error: invalid type in declaration before ';' token
 }a[1005];
         ^
0_0_28239119_6278.cpp:58:9: error: conflicting declaration 'int a [1005]'
0_0_28239119_6278.cpp:8:2: note: previous declaration as 'hw a [1005]'
 }a[1005];
  ^
0_0_28239119_6278.cpp: In function 'bool my_cmp(hw, hw)':
0_0_28239119_6278.cpp:60:6: error: redefinition of 'bool my_cmp(hw, hw)'
 bool my_cmp(hw x,hw y)
      ^
0_0_28239119_6278.cpp:10:6: note: 'bool my_cmp(hw, hw)' previously defined here
 bool my_cmp(hw x,hw y)
      ^
0_0_28239119_6278.cpp: In function 'int main()':
0_0_28239119_6278.cpp:67:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_28239119_6278.cpp:17:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_28239119_6278.cpp:80:28: error: 'sort' was not declared in this scope
       sort(a+1,a+n+1,my_cmp);
                            ^


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-25 10:10:10, Gzip enabled