0_0_38066089_17189.cpp: In function 'int main()':
0_0_38066089_17189.cpp:60:44: error: wrong number of template arguments (0, should be 1)
sort(query.begin(), query.end(), greater<>());
^
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_38066089_17189.cpp:3:
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_38066089_17189.cpp:63:13: error: expected unqualified-id before '[' token
for(auto &[val, id] : query) {
^
0_0_38066089_17189.cpp:63:13: error: expected ';' before '[' token
0_0_38066089_17189.cpp:63:14: error: 'val' was not declared in this scope
for(auto &[val, id] : query) {
^
0_0_38066089_17189.cpp:63:19: error: 'id' was not declared in this scope
for(auto &[val, id] : query) {
^
0_0_38066089_17189.cpp: In lambda function:
0_0_38066089_17189.cpp:63:23: error: expected '{' before ':' token
for(auto &[val, id] : query) {
^
0_0_38066089_17189.cpp: In function 'int main()':
0_0_38066089_17189.cpp:63:23: error: expected ';' before ':' token
0_0_38066089_17189.cpp:63:23: error: expected primary-expression before ':' token
0_0_38066089_17189.cpp:63:23: error: expected ')' before ':' token
0_0_38066089_17189.cpp:63:23: error: expected primary-expression before ':' token
|