0_0_37760098_26355.cpp: In lambda function:
0_0_37760098_26355.cpp:28:28: error: request for member 'val' in '(&(& dp)->std::vector<_Tp, _Alloc>::operator[]<std::vector<long long int>, std::allocator<std::vector<long long int> > >(((std::vector<std::vector<long long int> >::size_type)(x + y))))->std::vector<_Tp, _Alloc>::operator[]<long long int, std::allocator<long long int> >(((std::vector<long long int>::size_type)tar))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}'
if (dp[x + y][tar].val()) return dp[x + y][tar];
^
0_0_37760098_26355.cpp: In function 'void solve()':
0_0_37760098_26355.cpp:39:17: error: request for member 'val' in 'ans', which is of non-class type 'll {aka long long int}'
cout << ans.val() << '\n';
^
|