Problem | oridance |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-22 23:45:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
oridance.cpp: In function ‘long long int dance(long long int, long long int)’:
oridance.cpp:11:13: error: invalid types ‘__gnu_cxx::__alloc_traits<std::vector<long long int>, long long int>::value_type {aka long long int}[long long int]’ for array subscript
11 | if (dp[l][r]!=-1){
| ^
oridance.cpp:12:17: error: invalid types ‘__gnu_cxx::__alloc_traits<std::vector<long long int>, long long int>::value_type {aka long long int}[long long int]’ for array subscript
12 | return dp[l][r];
| ^
oridance.cpp:17:9: error: invalid types ‘__gnu_cxx::__alloc_traits<std::vector<long long int>, long long int>::value_type {aka long long int}[long long int]’ for array subscript
17 | dp[l][r] = vect[r]-vect[l]+min(dance(l+1, r), dance(l, r-1));
| ^
oridance.cpp: In function ‘int32_t main()’:
oridance.cpp:23:33: error: no matching function for call to ‘std::vector<long