Problem | hamster1 |
---|---|
User | angelahaha |
Submission Time | 2023-11-15 13:22:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
hamster1.cpp: In function ‘int main()’:
hamster1.cpp:11:13: error: ‘i’ was not declared in this scope
11 | cin >> arr[i];
| ^
hamster1.cpp:18:45: error: expected ‘)’ before ‘{’ token
18 | if(dp [j] + abs (arr[i] - arr[j] < temp)
| ~ ^
| )
19 | { //abs is absolute value
| ~
hamster1.cpp:22:3: error: expected primary-expression before ‘}’ token
22 | }
| ^
hamster1.cpp:27:1: error: expected ‘}’ at end of input
27 | }
| ^
hamster1.cpp:5:16: note: to match this ‘{’
5 | signed main () {
| ^