Problem hamster1
User angelahaha
Submission Time 2023-11-15 13:19:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hamster1.cpp: In function ‘int main()’:
hamster1.cpp:11:13: error: ‘i’ was not declared in this scope
11 | cin >> arr[i];
| ^
hamster1.cpp:17:8: error: expected ‘(’ before ‘dp’
17 | if dp [j] + abs (arr[i] - arr[j] < temp){ //abs is absolute value
| ^~
| (