Problem | hamster1 |
---|---|
User | angelahaha |
Submission Time | 2023-11-15 13:22:36 |
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:4: error: expected primary-expression before ‘}’ token
22 | }
| ^