0_0_24262748_21235.cpp:11:19: error: expected ')' before 'fl1'
bool mysort(floor fl1,floor fl2);
^
0_0_24262748_21235.cpp:11:29: error: expected ')' before 'fl2'
bool mysort(floor fl1,floor fl2);
^
0_0_24262748_21235.cpp:11:32: error: expression list treated as compound expression in initializer [-fpermissive]
bool mysort(floor fl1,floor fl2);
^
0_0_24262748_21235.cpp:11:32: error: left operand of comma operator cannot resolve address of overloaded function
0_0_24262748_21235.cpp:11:32: error: no context to resolve type of 'std::floor'
0_0_24262748_21235.cpp: In function 'int main()':
0_0_24262748_21235.cpp:18:9: error: expected ';' before 'ghl'
floor ghl[MAX]={0,0};
^
0_0_24262748_21235.cpp:18:23: error: statement cannot resolve address of overloaded function
floor ghl[MAX]={0,0};
^
0_0_24262748_21235.cpp:21:9: error: 'ghl' was not declared in this scope
cin>>ghl[i].w;
^
0_0_24262748_21235.cpp:25:8: error: 'ghl' was not declared in this scope
sort(ghl,ghl+N,mysort);
^
0_0_24262748_21235.cpp: At global scope:
0_0_24262748_21235.cpp:49:13: error: redefinition of 'bool mysort'
bool mysort(floor fl1,floor fl2)
^
0_0_24262748_21235.cpp:11:6: note: 'bool mysort' previously defined here
bool mysort(floor fl1,floor fl2);
^
0_0_24262748_21235.cpp:49:19: error: expected ')' before 'fl1'
bool mysort(floor fl1,floor fl2)
^
0_0_24262748_21235.cpp:49:29: error: expected ')' before 'fl2'
bool mysort(floor fl1,floor fl2)
^
|