Slidininkas

Taškai: 0

Compile: FAIL

slidininkas.cpp:3:41: error: wrong number of template arguments (1, should be at least 2) map<pair<pair<int, int>, vector<bool> > > dp; ^ In file included from /usr/include/c++/5/map:61:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:80, from slidininkas.cpp:1: /usr/include/c++/5/bits/stl_map.h:96:11: note: provided for ‘template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map’ class map ^ slidininkas.cpp: In function ‘int findAns(int, int)’: slidininkas.cpp:11:11: error: request for member ‘count’ in ‘dp’, which is of non-class type ‘int’ if(dp.count({{e, s}, taken})) return dp[{{e, s}, taken}]; ^ slidininkas.cpp:11:60: error: invalid types ‘int[<brace-enclosed initializer list>]’ for array subscript if(dp.count({{e, s}, taken})) return dp[{{e, s}, taken}]; ^ slidininkas.cpp:24:30: error: invalid types ‘int[<brace-enclosed initializer list>]’ for array subscript return dp[{{e, s}, taken}] = ret; ^ slidininkas.cpp: In function ‘int main()’: slidininkas.cpp:77:12: error: request for member ‘clear’ in ‘dp’, which is of non-class type ‘int’ dp.clear(); ^

nr.resulttimemessage