Problem celldivision
User bron
Submission Time 2023-01-13 09:34:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

celldivision.cpp: In function ‘int main()’:
celldivision.cpp:23:8: error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’
23 | read(n);
| ^
celldivision.cpp:6:16: note: initializing argument 1 of ‘void read(int&)’
6 | void read(int &v){
| ~~~~~^