Problem candymountain_ex
User Hijackedsoul
Submission Time 2024-01-04 23:07:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candymountain_ex.cpp: In function ‘int32_t main()’:
candymountain_ex.cpp:9:7: error: invalid types ‘long long int[int]’ for array subscript
9 | arr[0]=0;
| ^
candymountain_ex.cpp:10:6: error: invalid types ‘long long int[int]’ for array subscript
10 | dp[0]=0;
| ^
candymountain_ex.cpp:12:20: error: invalid types ‘long long int[long long int]’ for array subscript
12 | std::cin >> arr[i];
| ^
candymountain_ex.cpp:15:14: error: invalid types ‘long long int[long long int]’ for array subscript
15 | if(dp[i-j]<=arr[i]){
| ^
candymountain_ex.cpp:15:22: error: invalid types ‘long long int[long long int]’ for array subscript
15 | if(dp[i-j]<=arr[i]){
| ^
candymountain_ex.cpp:16:10: error: invalid types ‘long long int[long long int]’ for array subscript
16 | dp[i]=arr[i];
| ^
candymoun