Problem | hamster1 |
---|---|
User | Ush |
Submission Time | 2023-11-15 13:16:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
hamster1.cpp: In function ‘int32_t main()’:
hamster1.cpp:12:2: error: ‘dp’ was not declared in this scope
12 | dp[0]=0;
| ^~
hamster1.cpp:17:42: error: expected primary-expression before ‘...’ token
17 | if (dp[j] + abs(arr[i]-arr[j])<temp){.... got in the slides
| ^~~
hamster1.cpp:17:58: error: expected ‘}’ at end of input
17 | if (dp[j] + abs(arr[i]-arr[j])<temp){.... got in the slides
| ~ ^~~~~~
hamster1.cpp:17:58: error: expected ‘}’ at end of input
hamster1.cpp:16:14: note: to match this ‘{’
16 | if (j>=0) {
| ^
hamster1.cpp:17:58: error: expected ‘}’ at end of input
17 | if (dp[j] + abs(arr[i]-arr[j])<temp){.... got in the slides
| ^~~~~~
hamster1.cpp:15:31: note: to match this ‘{’
15 |