Problem | goombatower |
---|---|
User | Xiaoyang |
Submission Time | 2023-12-11 10:52:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
goombatower.cpp: In function ‘int main()’:
goombatower.cpp:67:9: error: cannot bind non-const lvalue reference of type ‘ll&’ {aka ‘long long int&’} to an rvalue of type ‘ll’ {aka ‘long long int’}
67 | update(1,1,n,1,1e9);
| ^
goombatower.cpp:31:17: note: initializing argument 1 of ‘void update(ll&, ll, ll, ll, ll)’
31 | void update(ll &c,ll cl,ll cr,ll p,ll val){
| ~~~~^