Problem | realfun |
---|---|
User | Pan |
Submission Time | 2024-05-02 11:37:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
realfun.cpp: In function ‘bool valid(ll&, ll&, std::vector<std::pair<long long int, long long int> >&)’:
realfun.cpp:58:21: error: cannot bind non-const lvalue reference of type ‘ll&’ {aka ‘long long int&’} to an rvalue of type ‘ll’ {aka ‘long long int’}
58 | if (valid(siz, left-1, newxy)) return true;
| ~~~~^~
realfun.cpp:40:27: note: initializing argument 2 of ‘bool valid(ll&, ll&, std::vector<std::pair<long long int, long long int> >&)’
40 | bool valid(ll & siz, ll & left, vector<pi> & xy)
| ~~~~~^~~~
realfun.cpp:62:21: error: cannot bind non-const lvalue reference of type ‘ll&’ {aka ‘long long int&’} to an rvalue of type ‘ll’ {aka ‘long long int’}
62 | if (valid(siz, left-1, newxy)) return true;
| ~~~~^~
realfun.cpp:40:27: note: initializing argument 2 of ‘bool valid(ll&, ll&, std::vector<std::pair<long long int, long long int> &