Problem candles
User Fuhrer101
Submission Time 2023-11-24 14:12:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candles.cpp:357:3: error: expected declaration before ‘}’ token
357 | }
| ^
candles.cpp:359:17: error: ‘poscounter’ was not declared in this scope; did you mean ‘counter’?
359 | int counter = poscounter + negcounter*2;
| ^~~~~~~~~~
| counter
candles.cpp:359:30: error: ‘negcounter’ was not declared in this scope; did you mean ‘counter’?
359 | int counter = poscounter + negcounter*2;
| ^~~~~~~~~~
| counter
candles.cpp:360:3: error: ‘left’ does not name a type
360 | left = 0 ,right =0;
| ^~~~
candles.cpp:362:3: error: expected unqualified-id before ‘while’
362 | while(left + right != k){
| ^~~~~
candles.cpp:376:3: error: ‘bestans’ does not name a type; did you mean ‘setns’?
376 | bestans = min(counter,counter2);
| ^~~~~~~
| setns
candles.cpp:377:2: err