0_0_38148422_25631.cpp: In function 'void solve()':
0_0_38148422_25631.cpp:34:14: error: expected unqualified-id before '[' token
auto [x, y] = q.front();
^
0_0_38148422_25631.cpp:39:22: error: 'x' was not declared in this scope
res += s[x];
^
0_0_38148422_25631.cpp:42:29: error: 'y' was not declared in this scope
ans.push_back({res, y});
^
0_0_38148422_25631.cpp:42:31: error: no matching function for call to 'std::vector<std::pair<std::basic_string<char>, int> >::push_back(<brace-enclosed initializer list>)'
ans.push_back({res, y});
^
0_0_38148422_25631.cpp:42:31: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
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 GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_38148422_25631.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<std::basic_string<char>, int>; _Alloc = std::allocator<std::pair<std::basic_string<char>, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<std::basic_string<char>, int>]
push_back(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::pair<std::basic_string<char>, int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<std::basic_string<char>, int>; _Alloc = std::allocator<std::pair<std::basic_string<char>, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<std::basic_string<char>, int>]
push_back(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::pair<std::basic_string<char>, int> >::value_type&& {aka std::pair<std::basic_string<char>, int>&&}'
|