0_0_21869088_1707.cpp: In function 'int main()':
0_0_21869088_1707.cpp:20:32: error: no matching function for call to 'std::basic_string<char>::replace(int&, std::string&)'
b.replace(pos, dist);
^
0_0_21869088_1707.cpp:20:32: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52: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 GCC4.9.2/x86_64-w64-mingw32/include/c++/regex:38,
from 0_0_21869088_1707.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1447:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long long unsigned int]
replace(size_type __pos, size_type __n, const basic_string& __str)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1447:7: note: candidate expects 3 arguments, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1469:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const std::basic_string<_CharT, _Traits, _Alloc>&, std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long long unsigned int]
replace(size_type __pos1, size_type __n1, const basic_string& __str,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1469:7: note: candidate expects 5 arguments, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1494:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long long unsigned int]
replace(size_type __pos, size_type __n1, const _CharT* __s,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1494:7: note: candidate expects 4 arguments, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1514:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long long unsigned int]
replace(size_type __pos, size_type __n1, const _CharT* __s)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1514:7: note: candidate expects 3 arguments, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1538:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long long unsigned int]
replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1538:7: note: candidate expects 4 arguments, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1556:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace(std::basic_string<_CharT, _Traits, _Alloc>::iterator, std::basic_string<_CharT, _Traits, _Alloc>::iterator, const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::basic_string<char> >; typename _Alloc::rebind<_CharT>::other::pointer = char*]
replace(iterator __i1, iterator __i2, const basic_string& __str)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1556:7: note: candidate expects 3 arguments, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1575:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace(std::basic_string<_CharT, _Traits, _Alloc>::iterator, std::basic_string<_CharT, _Traits, _Alloc>::iterator, const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::basic_string<char> >; typename _Alloc::rebind<_CharT>::other::pointer = char*; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long long unsigned int]
replace(iterator __i1, iterator __i2, const _CharT* __s, size_type __n)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1575:7: note: candidate expects 4 arguments, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1596:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace(std::basic_string<_CharT, _Traits, _Alloc>::iterator, std::basic_string<_CharT, _Traits, _Alloc>::iterator, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::basic_string<char> >; typename _Alloc::rebind<_CharT>::other::pointer = char*]
replace(iterator __i1, iterator __i2, const _CharT* __s)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1596:7: note: candidate expects 3 arguments, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1617:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace(std::basic_string<_CharT, _Traits, _Alloc>::iterator, std::basic_string<_CharT, _Traits, _Alloc>::iterator, std::basic_string<_CharT, _Traits, _Alloc>::size_type, _CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::basic_string<char> >; typename _Alloc::rebind<_CharT>::other::pointer = char*; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long long unsigned int]
replace(iterator __i1, iterator __i2, size_type __n, _CharT __c)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1617:7: note: candidate expects 4 arguments, 2 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1641:9: note: template<class _InputIterator> std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace(std::basic_string<_CharT, _Traits, _Alloc>::iterator, std::basic_string<_CharT, _Traits, _Alloc>::iterator, _InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
replace(iterator __i1, iterator __i2,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1641:9: note: template argument deduction/substitution failed:
0_0_21869088_1707.cpp:20:32: note: cannot convert 'pos' (type 'int') to type 'std::basic_string<char>::iterator {aka __gnu_cxx::__normal_iterator<char*, std::basic_string<char> >}'
b.replace(pos, dist);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52: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 GCC4.9.2/x86_64-w64-mingw32/include/c++/regex:38,
from 0_0_21869088_1707.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:1654:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace(std::basic_string<_CharT, _Traits, _Alloc>::iterator, std::basic_string<_CharT, _Traits, _Alloc>::iterator, _CharT*, _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::iterator = __gnu_cxx::__normal_iterator<char*, std::basic_string<char> >; typename _Alloc::rebind<_CharT>::other::pointer = char*]
replace(iterator __i1, iterator __i2, _CharT* __k1, _CharT* __k2)
^
GCC4.9.2/x86_
|