Problem chocolate
User PlayVoltz
Submission Time 2024-09-06 01:36:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

chocolate.cpp: In function ‘int32_t main()’:
chocolate.cpp:40:28: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type {aka long long int}[long long int]’ for array subscript
40 | res=vect[i]+min(pm[i-1][j], pd[i-1][j-1]);
| ^
chocolate.cpp:40:42: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type {aka long long int}[long long int]’ for array subscript
40 | res=vect[i]+min(pm[i-1][j], pd[i-1][j-1]);
| ^
chocolate.cpp:42:30: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type {aka long long int}[long long int]’ for array subscript
42 | pd[i-j+n/2]=min(pd[i-1][j-1], res);
| ^