Problem | rating |
---|---|
User | Shadow1 |
Submission Time | 2024-04-07 21:38:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rating.cpp: In function ‘void solve()’:
rating.cpp:48:7: error: cannot bind non-const lvalue reference of type ‘ll&’ {aka ‘long long int&’} to an rvalue of type ‘ll’ {aka ‘long long int’}
48 | read(n);
| ^
rating.cpp:34:22: note: initializing argument 1 of ‘void read(ll&)’
34 | inline void read(ll &v) {
| ~~~~^
rating.cpp:51:12: error: cannot bind non-const lvalue reference of type ‘ll&’ {aka ‘long long int&’} to an rvalue of type ‘ll’ {aka ‘long long int’}
51 | read(a[i]);
| ^
rating.cpp:34:22: note: initializing argument 1 of ‘void read(ll&)’
34 | inline void read(ll &v) {
| ~~~~^