Problem | escape |
---|---|
User | Pan |
Submission Time | 2024-08-05 16:54:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
escape.cpp: In function ‘int main()’:
escape.cpp:68:13: error: cannot bind non-const lvalue reference of type ‘ll&’ {aka ‘long long int&’} to an rvalue of type ‘ll’ {aka ‘long long int’}
68 | pq.push(mv(0, 1, 0));
| ^
escape.cpp:43:20: note: initializing argument 1 of ‘std::vector<long long int> mv(ll&, ll&, ll&)’
43 | vector<ll> mv(ll & a, ll& b, ll& c)
| ~~~~~^
escape.cpp:86:20: error: cannot bind non-const lvalue reference of type ‘ll&’ {aka ‘long long int&’} to an rvalue of type ‘long long int’
86 | pq.push(mv(-u.s+now[0], u.f, now[2]));
escape.cpp:43:20: note: initializing argument 1 of ‘std::vector<long long int> mv(ll&, ll&, ll&)’
43 | vector<ll> mv(ll & a, ll& b, ll& c)
| ~~~~~^