Problem hackthectf
User PlayVoltz
Submission Time 2023-11-24 16:51:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hackthectf.cpp: In function ‘int32_t main()’:
hackthectf.cpp:18:7: error: cannot bind non-const lvalue reference of type ‘long long int&’ to an rvalue of type ‘long long int’
18 | read(n), read(k);
| ^
hackthectf.cpp:4:29: note: initializing argument 1 of ‘void read(long long int&)’
4 | inline void read(long long& x) {
| ~~~~~~~~~~~^
hackthectf.cpp:18:16: error: cannot bind non-const lvalue reference of type ‘long long int&’ to an rvalue of type ‘long long int’
18 | read(n), read(k);
| ^
hackthectf.cpp:4:29: note: initializing argument 1 of ‘void read(long long int&)’
4 | inline void read(long long& x) {
| ~~~~~~~~~~~^