0_0_28687815_16261.cpp:23:29: error: wrong number of template arguments (0, should be 1)
vector<map<int, int,greater<> > > w;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_28687815_16261.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:358:12: error: provided for 'template<class _Tp> struct std::greater'
struct greater : public binary_function<_Tp, _Tp, bool>
^
0_0_28687815_16261.cpp:23:31: error: template argument 3 is invalid
vector<map<int, int,greater<> > > w;
^
0_0_28687815_16261.cpp:23:33: error: template argument 1 is invalid
vector<map<int, int,greater<> > > w;
^
0_0_28687815_16261.cpp:23:33: error: template argument 2 is invalid
0_0_28687815_16261.cpp:23:36: error: invalid type in declaration before ';' token
vector<map<int, int,greater<> > > w;
^
0_0_28687815_16261.cpp: In function 'void clear(int)':
0_0_28687815_16261.cpp:29:4: error: request for member 'clear' in 'w', which is of non-class type 'int'
w.clear();
^
0_0_28687815_16261.cpp:30:4: error: request for member 'resize' in 'w', which is of non-class type 'int'
w.resize(n + 1);
^
0_0_28687815_16261.cpp: In function 'int main()':
0_0_28687815_16261.cpp:42:9: error: invalid types 'int[int]' for array subscript
w[own][v] = l;
^
0_0_28687815_16261.cpp:45:18: error: 'begin' was not declared in this scope
for (auto& s : w) {
^
0_0_28687815_16261.cpp:45:18: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_28687815_16261.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:87:5: note: 'std::begin'
begin(_Tp (&__arr)[_Nm])
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:87:5: note: 'std::begin'
0_0_28687815_16261.cpp:45:18: error: 'end' was not declared in this scope
for (auto& s : w) {
^
0_0_28687815_16261.cpp:45:18: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:51:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_28687815_16261.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note: 'std::end'
end(_Tp (&__arr)[_Nm])
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note: 'std::end'
0_0_28687815_16261.cpp:47:19: error: unable to deduce 'auto&&' from 's'
for (auto& u : s) {
^
|