Problem goombatower
User TheRaptor
Submission Time 2024-12-28 14:12:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

goombatower.cpp: In function ‘int bsta(int)’:
goombatower.cpp:15:30: error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’
15 | if(tot+(1<<i)-fenw[hole(cur+(1<<i))]<V){
| ~~~^~~~~~~
goombatower.cpp:6:22: note: initializing argument 1 of ‘int hole(int&)’
6 | inline int hole(int &x){return x+(x>>10);}
| ~~~~~^