Problem hamster1
User Minjia
Submission Time 2023-11-15 13:23:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hamster1.cpp:15:35: error: stray ‘\342’ in program
15 | if(dp[j] + abs(arr[i]-arr[j]) ‹ (temp)){
| ^
hamster1.cpp:15:36: error: stray ‘\200’ in program
15 | if(dp[j] + abs(arr[i]-arr[j]) ‹ (temp)){
| ^
hamster1.cpp:15:37: error: stray ‘\271’ in program
15 | if(dp[j] + abs(arr[i]-arr[j]) ‹ (temp)){
| ^
hamster1.cpp: In function ‘int main()’:
hamster1.cpp:13:16: error: ‘i’ was not declared in this scope
13 | for (int j = i - k; j <= i - 1; j++){
| ^
hamster1.cpp:15:40: error: ‘temp’ was not declared in this scope
15 | if(dp[j] + abs(arr[i]-arr[j]) ‹ (temp)){
| ^~~~
hamster1.cpp:20:7: error: ‘i’ was not declared in this scope
20 | dp [i]= temp;
| ^
hamster1.cpp:20:11: error: ‘temp’ was not decla