Problem hamster1
User angelahaha
Submission Time 2023-11-15 13:21: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:18:45: error: expected ‘)’ before ‘{’ token
18 | if(dp [j] + abs (arr[i] - arr[j] < temp){ //abs is absolute value
| ~ ^
| )
hamster1.cpp:21:4: error: expected primary-expression before ‘}’ token
21 | }
| ^