lightningrod.cpp: In function 'int main()':
lightningrod.cpp:20:10: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
20 | read(n);
| ^
lightningrod.cpp:5:23: note: initializing argument 1 of 'void read(int&)'
5 | inline void read(int &x)
| ~~~~~^
lightningrod.cpp:23:14: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
23 | read(a);
| ^
lightningrod.cpp:5:23: note: initializing argument 1 of 'void read(int&)'
5 | inline void read(int &x)
| ~~~~~^
lightningrod.cpp:24:14: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
24 | read(b);
| ^
lightningrod.cpp:5:23: note: initializing argument 1 of 'void read(int&)'
5 | inline void read(int &x)
| ~~~~~^
lightningrod.cpp:25:12: error: 'ma' was not declared in this scope; did you mean 'a'?
25 | if(ma[a] == 0)
| ^~
| a