Problem hamster1
User Minjia
Submission Time 2023-11-15 13:20:52
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:34: error: expected ‘)’ before ‘temp’
15 | if(dp[j] + abs(arr[i]-arr[j]) ‹ temp){
| ~ ^ ~~~~
| )
hamster1.cpp:16:6: error: ‘temp’ was not declared in this scope
16 | temp = dp[j] + abs(arr[i]-arr[j]);
|