Problem | bizarrebuffet |
---|---|
User | Shadow1 |
Submission Time | 2024-05-25 21:41:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bizarrebuffet.cpp: In function ‘void solve()’:
bizarrebuffet.cpp:41:39: error: expected ‘;’ before ‘k’
41 | if((a[i-1] >= a[i] && a[i] < a[i+1])
| ^
| ;
42 | k = i;
| ~
bizarrebuffet.cpp:43:28: error: expected ‘)’ before ‘;’ token
43 | ans += abs(a[i+1] - a[i]);
| ^
| )
bizarrebuffet.cpp:41:5: note: to match this ‘(’
41 | if((a[i-1] >= a[i] && a[i] < a[i+1])
| ^