Problem hamster1
User angelahaha
Submission Time 2023-11-15 13:25:58
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: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 | }
| ^