| Problem | coincombinations |
|---|---|
| User | riniiii |
| Submission Time | 2026-03-07 20:39:44 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
coincombinations.cpp: In function ‘int main()’:
coincombinations.cpp:19:6: error: conflicting declaration ‘int dp [(N + 1)][(V + 1)]’
19 | int dp[N+1][V+1];
| ^~
coincombinations.cpp:15:12: note: previous declaration as ‘long long int dp [(V + 1)]’
15 | long long dp[V+1] = {0};
| ^~
coincombinations.cpp:22:13: error: invalid types ‘long long int[int]’ for array subscript
22 | dp[i][0] = 1;
| ^
coincombinations.cpp:27:42: error: ‘MOD’ was not declared in this scope
27 | dp[j] = (dp[j]+dp[j-coin]) % MOD;
| ^~~
coincombinations.cpp:36:21: error: invalid types ‘long long int[int]’ for array subscript
36 | dp[x][y] = (dp[x-1][y] + dp[x][y-coins[x]])%mod;
| ^
coincombinations.cpp:36:35: error: invalid types ‘long long int[int]’ for array subscript
36 | dp[x][y] =