| Problem | lightningrod |
|---|---|
| User | shenshiqi |
| Submission Time | 2026-01-02 09:58:17 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:39:7: error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’
39 | read(n);
| ^
lightningrod.cpp:19:23: note: initializing argument 1 of ‘void read(int&)’
19 | inline void read(int& x) {
| ~~~~~^
lightningrod.cpp:46:15: error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’
46 | read(pos[i].first);
lightningrod.cpp:19:23: note: initializing argument 1 of ‘void read(int&)’
19 | inline void read(int& x) {
| ~~~~~^
lightningrod.cpp:47:15: error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’
47 | read(pos[i].second);
lightningrod.cpp:19:23: note: initializing argument 1 of ‘void read(int&)’
19 | inline void read(int& x) {
| ~~~~~^