Problem | burgers |
---|---|
User | OSoverspike |
Submission Time | 2023-02-22 12:35:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
burgers.cpp: In function ‘long long int dp(long long int, long long int)’:
burgers.cpp:30:9: error: expected ‘}’ before ‘else’
30 | else return dp(pos-1, c);
| ^~~~
burgers.cpp:28:57: note: to match this ‘{’
28 | if (func(pos)>=func(pos-1)&&func(pos)<=func(pos+1)) {
| ^
burgers.cpp: At global scope:
burgers.cpp:32:5: error: expected unqualified-id before ‘else’
32 | else if (func(pos)<=func(pos-1)&&func(pos)>=func(pos+1)) {
| ^~~~
burgers.cpp:35:5: error: expected unqualified-id before ‘else’
35 | else {
| ^~~~
burgers.cpp:39:5: error: expected unqualified-id before ‘return’
39 | return -1;
| ^~~~~~
burgers.cpp:40:1: error: expected declaration before ‘}’ token
40 | }
| ^