Borderou de evaluare (job #1906260)

Utilizator popabogdanPopa Bogdan Ioan popabogdan Data 6 martie 2017 12:58:06
Problema Poligon Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘bool qxSegment(segment, segment)’: user.cpp:42:32: error: invalid operands of types ‘const long double’ and ‘<unresolved overloaded function type>’ to binary ‘operator<’ return max(a.A.y, a.B.y) < max{b.A.y, b.B.y) || (equals(max(a.A.y, a.B.y), max(b.A.y, b.B.y)) && min(a.A.y, a.B.y) < min(b.A.y, b.B.y)); ^ user.cpp:42:35: error: expected ‘;’ before ‘{’ token return max(a.A.y, a.B.y) < max{b.A.y, b.B.y) || (equals(max(a.A.y, a.B.y), max(b.A.y, b.B.y)) && min(a.A.y, a.B.y) < min(b.A.y, b.B.y)); ^ user.cpp:42:47: warning: left operand of comma operator has no effect [-Wunused-value] return max(a.A.y, a.B.y) < max{b.A.y, b.B.y) || (equals(max(a.A.y, a.B.y), max(b.A.y, b.B.y)) && min(a.A.y, a.B.y) < min(b.A.y, b.B.y)); ^ user.cpp:42:48: error: expected ‘;’ before ‘)’ token return max(a.A.y, a.B.y) < max{b.A.y, b.B.y) || (equals(max(a.A.y, a.B.y), max(b.A.y, b.B.y)) && min(a.A.y, a.B.y) < min(b.A.y, b.B.y)); ^ user.cpp:42:140: warning: right operand of comma operator has no effect [-Wunused-value] return max(a.A.y, a.B.y) < max{b.A.y, b.B.y) || (equals(max(a.A.y, a.B.y), max(b.A.y, b.B.y)) && min(a.A.y, a.B.y) < min(b.A.y, b.B.y)); ^ user.cpp:45:1: error: a function-definition is not allowed here before ‘{’ token { ^ user.cpp:49:1: error: a function-definition is not allowed here before ‘{’ token { ^ user.cpp:53:1: error: a function-definition is not allowed here before ‘{’ token { ^ user.cpp:57:1: error: a function-definition is not allowed here before ‘{’ token { ^ user.cpp:177:1: error: expected ‘}’ at end of input } ^ user.cpp:177:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?