0_0_18973335_27208.cpp: In function 'void update(int&, int, int, LL)':
0_0_18973335_27208.cpp:63:29: error: invalid initialization of reference of type 'int&' from expression of type 'LL {aka long long int}'
if(tag<=mid) update(ls[node],l,mid,tag);
^
0_0_18973335_27208.cpp:47:6: note: in passing argument 1 of 'void update(int&, int, int, LL)'
void update(int &node,int l,int r,LL tag)
^
0_0_18973335_27208.cpp:64:21: error: invalid initialization of reference of type 'int&' from expression of type 'LL {aka long long int}'
else update(rs[node],mid+1,r,tag);
^
0_0_18973335_27208.cpp:47:6: note: in passing argument 1 of 'void update(int&, int, int, LL)'
void update(int &node,int l,int r,LL tag)
^
0_0_18973335_27208.cpp: In function 'LL query(int, int, int, LL, LL)':
0_0_18973335_27208.cpp:74:40: error: 'x' was not declared in this scope
if(L<=mid) ret+=query(ls[node],l,mid,x);
^
0_0_18973335_27208.cpp:75:41: error: 'x' was not declared in this scope
if(R>mid) ret+=query(rs[node],mid+1,r,x);
^
0_0_18973335_27208.cpp: In function 'void dfs(int)':
0_0_18973335_27208.cpp:83:33: error: invalid initialization of reference of type 'int&' from expression of type 'LL {aka long long int}'
update(rt[v]=rt[root],1,n,w[v]);
^
0_0_18973335_27208.cpp:47:6: note: in passing argument 1 of 'void update(int&, int, int, LL)'
void update(int &node,int l,int r,LL tag)
^
0_0_18973335_27208.cpp: In function 'int fun(LL)':
0_0_18973335_27208.cpp:92:12: error: no match for 'operator<=' (operand types are 'Node2' and 'LL {aka long long int}')
if(a[mid]<=x)
^
0_0_18973335_27208.cpp:92:12: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
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/include/c++/iostream:39,
from 0_0_18973335_27208.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:239:5: note: template<class _T1, class _T2> constexpr bool std::operator<=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:239:5: note: template argument deduction/substitution failed:
0_0_18973335_27208.cpp:92:14: note: 'Node2' is not derived from 'const std::pair<_T1, _T2>'
if(a[mid]<=x)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
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/include/c++/iostream:39,
from 0_0_18973335_27208.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:316:5: note: template<class _Iterator> bool std::operator<=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
operator<=(const reverse_iterator<_Iterator>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:316:5: note: template argument deduction/substitution failed:
0_0_18973335_27208.cpp:92:14: note: 'Node2' is not derived from 'const std::reverse_iterator<_Iterator>'
if(a[mid]<=x)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
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/include/c++/iostream:39,
from 0_0_18973335_27208.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:366:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
operator<=(const reverse_iterator<_IteratorL>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:366:5: note: template argument deduction/substitution failed:
0_0_18973335_27208.cpp:92:14: note: 'Node2' is not derived from 'const std::reverse_iterator<_Iterator>'
if(a[mid]<=x)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
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/include/c++/iostream:39,
from 0_0_18973335_27208.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1084:5: note: template<class _IteratorL, class _IteratorR> bool std::operator<=(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&)
operator<=(const move_iterator<_IteratorL>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1084:5: note: template argument deduction/substitution failed:
0_0_18973335_27208.cpp:92:14: note: 'Node2' is not derived from 'const std::move_iterator<_Iterator>'
if(a[mid]<=x)
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
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/include/c++/iostream:39,
from 0_0_18973335_27208.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1090:5: note: template<class _Iterator> bool std::operator<=(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
operator<=(const move_iterator<_Iterator>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1090:5: note: template argument deduction/substitution failed:
0_0_18973335_27208.cpp:92:14: note: 'Node2' is not derived from 'const std::move_iterator<_Iterator>'
if(a[mid]<=x)
^
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_18973335_27208.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2662:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2662:5: note: template argument deduction/substitution failed:
0_0_18973335_27208.cpp:92:14: note: 'Node2' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>'
if(a[mid]<=x)
^
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_18973335_27208.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2674:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator<=(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
operator<=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2674:5: note: template argument deduction/substitution failed:
0_0_18973335_27208.cpp:92:14: note: 'Node2' is not derived from 'const std::basic_string<_CharT, _Traits, _Alloc>'
if(a[mid]<=x)
^
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++
|