0_0_27221715_23128.cpp:9:16: error: expected ')' before 'a'
int cmp(floor a,floor b)
^
0_0_27221715_23128.cpp:9:24: error: expected ')' before 'b'
int cmp(floor a,floor b)
^
0_0_27221715_23128.cpp:9:25: error: expression list treated as compound expression in initializer [-fpermissive]
int cmp(floor a,floor b)
^
0_0_27221715_23128.cpp:9:25: error: left operand of comma operator cannot resolve address of overloaded function
0_0_27221715_23128.cpp:9:25: error: no context to resolve type of 'std::floor'
0_0_27221715_23128.cpp:10:2: error: expected ',' or ';' before '{' token
{
^
0_0_27221715_23128.cpp: In function 'int main(int, char**)':
0_0_27221715_23128.cpp:22:9: error: expected ';' before 'f'
floor f[204];
^
0_0_27221715_23128.cpp:22:15: error: statement cannot resolve address of overloaded function
floor f[204];
^
0_0_27221715_23128.cpp:28:9: error: 'f' was not declared in this scope
cin>>f[i].from>>f[i].to;
^
0_0_27221715_23128.cpp:30:8: error: 'f' was not declared in this scope
sort(f,f+n,cmp);
^
|