Problem rating
User Shadow1
Submission Time 2024-04-07 21:33:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rating.cpp: In function ‘void solve()’:
rating.cpp:44:7: error: cannot bind non-const lvalue reference of type ‘long long int&’ to an rvalue of type ‘long long int’
44 | read(n);
| ^
rating.cpp:32:29: note: initializing argument 1 of ‘void read(long long int&)’
32 | inline void read(long long &x) {
| ~~~~~~~~~~~^
rating.cpp:47:12: error: cannot bind non-const lvalue reference of type ‘long long int&’ to an rvalue of type ‘long long int’
47 | read(a[i]);
| ^
rating.cpp:32:29: note: initializing argument 1 of ‘void read(long long int&)’
32 | inline void read(long long &x) {
| ~~~~~~~~~~~^