Problem | burgers |
---|---|
User | Potato3218 |
Submission Time | 2023-02-20 23:11:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
burgers.cpp: In function ‘bool possible(long long int)’:
burgers.cpp:27:13: error: expected ‘}’ before ‘else’
27 | else ub = min(ub, res);
| ^~~~
burgers.cpp:24:21: note: to match this ‘{’
24 | if(down > 0){
| ^
burgers.cpp:27:31: error: ‘res’ was not declared in this scope; did you mean ‘yes’?
27 | else ub = min(ub, res);
| ^~~
| yes
burgers.cpp:28:10: error: ‘else’ without a previous ‘if’
28 | }else{
| ^~~~
burgers.cpp:29:23: error: ‘up’ was not declared in this scope; did you mean ‘ub’?
29 | int res = up/down;
| ^~
| ub
burgers.cpp:29:26: error: ‘down’ was not declared in this scope
29 | int res = up/down;
| ^~~~
burgers.cp