0_0_36831057_28383.cpp: In function 'void solve()':
0_0_36831057_28383.cpp:22:35: error: no matching function for call to 'std::vector<std::pair<int, std::basic_string<char> > >::push_back(int&, std::string&)'
cin>>s>>a; b.push_back(a,s);
^
0_0_36831057_28383.cpp:22:35: 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_36831057_28383.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<int, std::basic_string<char> >; _Alloc = std::allocator<std::pair<int, std::basic_string<char> > >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, std::basic_string<char> >]
push_back(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:913:7: note: candidate expects 1 argument, 2 provided
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<int, std::basic_string<char> >; _Alloc = std::allocator<std::pair<int, std::basic_string<char> > >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, std::basic_string<char> >]
push_back(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:931:7: note: candidate expects 1 argument, 2 provided
|