0_0_19572307_12820.cpp: In function 'int main()':
0_0_19572307_12820.cpp:21:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(ch[j]=="£¬") ch[j]="¡ª¡ª";
^
0_0_19572307_12820.cpp:21:31: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
if(ch[j]=="£¬") ch[j]="¡ª¡ª";
^
0_0_19572307_12820.cpp:40:43: error: no matching function for call to 'std::basic_string<char>::substr(std::string&, int, int)'
ans[++l]=ch.substr(ch,0,k+1)+ch.substr(ch,l,r-l);
^
0_0_19572307_12820.cpp:40:43: note: candidate is:
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++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_19572307_12820.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2225:7: note: std::basic_string<_CharT, _Traits, _Alloc> std::basic_string<_CharT, _Traits, _Alloc>::substr(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long long unsigned int]
substr(size_type __pos = 0, size_type __n = npos) const
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2225:7: note: candidate expects 2 arguments, 3 provided
0_0_19572307_12820.cpp:40:63: error: no matching function for call to 'std::basic_string<char>::substr(std::string&, int&, int)'
ans[++l]=ch.substr(ch,0,k+1)+ch.substr(ch,l,r-l);
^
0_0_19572307_12820.cpp:40:63: note: candidate is:
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++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_19572307_12820.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2225:7: note: std::basic_string<_CharT, _Traits, _Alloc> std::basic_string<_CharT, _Traits, _Alloc>::substr(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long long unsigned int]
substr(size_type __pos = 0, size_type __n = npos) const
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2225:7: note: candidate expects 2 arguments, 3 provided
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_19572307_12820.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::basic_string<char> (*)[205]; _Compare = __gnu_cxx::__ops::_Iter_less_iter]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1884:70: required from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::basic_string<char> (*)[205]; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1970:55: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::basic_string<char> (*)[205]; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4685:72: required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = std::basic_string<char> (*)[205]]'
0_0_19572307_12820.cpp:45:26: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1851:17: error: invalid array assignment
*__first = _GLIBCXX_MOVE(__val);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_19572307_12820.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h: In instantiation of 'void std::__pop_heap(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::basic_string<char> (*)[205]; _Compare = __gnu_cxx::__ops::_Iter_less_iter]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1676:50: required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::basic_string<char> (*)[205]; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1932:59: required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::basic_string<char> (*)[205]; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1947:59: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = std::basic_string<char> (*)[205]; _Size = long long int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1969:11: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::basic_string<char> (*)[205]; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4685:72: required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = std::basic_string<char> (*)[205]]'
0_0_19572307_12820.cpp:45:26: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:244:17: error: invalid array assignment
*__result = _GLIBCXX_MOVE(*__first);
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h: In instantiation of 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = std::basic_string<char> (*)[205]; _Distance = long long int; _Tp = std::basic_string<char>*; _Compare = __gnu_cxx::__ops::_Iter_less_iter]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:334:15: required from 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::basic_string<char> (*)[205]; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1673:49: required from 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::basic_string<char> (*)[205]; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1932:59: required from 'void std::__partial_sort(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::basic_string<char> (*)[205]; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1947:59: required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = std::basic_string<char> (*)[205]; _Size = long long int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1969:11: required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::basic_string<char> (*)[205]; _Compare = __gnu_cxx::__ops::_Iter_less_iter]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4685:72: required from 'void std::sort(_RAIter, _RAIter) [with _RAIter = std::basic_string<char> (*)[205]]'
0_0_19572307_12820.cpp:45:26: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:218:29: error: invalid array assignment
*(__first + __holeIndex) = _GLIBCXX_MOVE(*(__first + __secondChild));
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:224:29: error: invalid array assignment
*(__first + __holeIndex) = _GLIBCXX_MOVE(*(__first
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32
|