Slidininkas
- [1] 2020-05-11 17:32 (17.6)
- [2] 2020-05-11 17:35 (47.1)
- [3] 2020-05-11 17:36 (47.1)
- [4] 2020-05-11 17:57 (47.1)
- [5] 2020-05-11 18:03 (0)
- [6] 2020-05-11 18:04 (76.5)
- [7] 2020-05-11 18:05 (76.5)
- [8] 2020-05-11 18:08 (70.6)
- [9] 2020-05-11 18:10 (64.7)
- [10] 2020-05-11 18:24 (100)
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. | result | time | message |
---|