Borderou de evaluare (job #2700052)
Utilizator | Data | 26 ianuarie 2021 13:51:31 | |
---|---|---|---|
Problema | Camera | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In lambda function:
main.cpp:14:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return m.b < 0 || m.b == 0 && m.a < 0; };
~~~~~~~~~^~~~~~~~~~
main.cpp: In member function 'bool HalfplaneSet::bad(auto:3)':
main.cpp:42:10: error: expected unqualified-id before '[' token
auto [x, y, d] = inter(pl, nl);
^
main.cpp:43:22: error: 'x' was not declared in this scope
bool sat = l.a * x + l.b * y <= l.c * d;
^
main.cpp:43:32: error: 'y' was not declared in this scope
bool sat = l.a * x + l.b * y <= l.c * d;
^
main.cpp:43:43: error: 'd' was not declared in this scope
bool sat = l.a * x + l.b * y <= l.c * d;
^
main.cpp: In member function 'double HalfplaneSet::Maximize(T, T)':
main.cpp:87:10: error: expected unqualified-id before '[' token
auto [x, y, d] = inter(*prv(it), *it);
^
main.cpp:88:23: error: 'x' was not declared in this scope
return (1.0 * a * x + 1.0 * b * y) / d;
^
main.cpp:88:37: error: 'y' was not declared in this scope
return (1.0 * a * x + 1.0 * b * y) / d;
^
main.cpp:88:42: error: 'd' was not declared in this scope
return (1.0 * a * x + 1.0 * b * y) / d;
^
main.cpp: In member function 'double HalfplaneSet::Area()':
main.cpp:95:12: error: expected unqualified-id before '[' token
auto [x1, y1, d1] = inter(*prv(it), *it);
^
main.cpp:96:12: error: expected unqualified-id before '[' token
auto [x2, y2, d2] = inter(*it, *nxt(it));
^
main.cpp:97:23: error: 'x1' was not declared in this scope
total += (1.0 * x1 * y2 - 1.0 * x2 * y1) / d1 / d2;
^~
main.cpp:97:28: error: 'y2' was not declared in this scope
total += (1.0 * x1 * y2 - 1.0 * x2 * y1) / d1 / d2;
^~
main.cpp:97:39: error: 'x2' was not declared in this scope
total += (1.0 * x1 * y2 - 1.0 * x2 * y1) / d1 / d2;
^~
main.cpp:97:50: error: 'd1' was not declared in this scope
total += (1.0 * x1 * y2 - 1.0 * x2 * y1) / d1 / d2;
^~
main.cpp:97:55: error: 'd2' was not declared in this scope
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !