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);
^
|