Problem jumping2
User PlayVoltz
Submission Time 2023-10-08 15:37:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

jumping2.cpp: In function ‘int32_t main()’:
jumping2.cpp:29:90: error: cannot bind non-const lvalue reference of type ‘Line&’ to an rvalue of type ‘Line’
29 | while (hull.size() >= 2 && bad(hull[hull.size() - 2], hull[hull.size() - 1], Line(-2 * j, dp[i - 1][j] + j * j))) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jumping2.cpp:12:36: note: initializing argument 3 of ‘bool bad(Line&, Line&, Line&)’
12 | bool bad(Line& l1, Line& l2, Line& l3) {
| ~~~~~~^~