Problem | hamster1 |
---|---|
User | Curiocodeexplorer |
Submission Time | 2023-11-15 13:22:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
hamster1.cpp: In function ‘int main()’:
hamster1.cpp:14:10: error: ‘dp’ was not declared in this scope; did you mean ‘d’?
14 | temp=dp[j] + abs(arr[i]-arr[j];
| ^~
| d
hamster1.cpp:14:35: error: expected ‘)’ before ‘;’ token
14 | temp=dp[j] + abs(arr[i]-arr[j];
| ~ ^
| )
hamster1.cpp:18:4: error: ‘dp’ was not declared in this scope; did you mean ‘d’?
18 | dp[i] = temp;
| ^~
| d
hamster1.cpp:18:7: error: ‘i’ was not declared in this scope
18 | dp[i] = temp;
| ^
hamster1.cpp:18:12: error: ‘temp’ was not declared in this scope
18 | dp[i] = temp;
| ^~~~
hamster1.cpp: At global scope:
hamster1.cpp:20:10: error: ‘cout’ does not name a type
20 | cout << dp[n-1];
| ^~~~
hamster1.cpp:21:4: error: expected unqua