sterilizing.cpp:121:2: error: 'seg' does not name a type; did you mean 'se'?
}seg;
^~~
se
sterilizing.cpp:146:1: error: expected '}' at end of input
}
^
sterilizing.cpp: In member function 'void segtree::push(ll, ll, ll)':
sterilizing.cpp:31:30: error: no matching function for call to 'min(ll&, int)'
lazy[x] = min(lazy[x], logn);
^
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /usr/include/c++/7/complex:45,
from /usr/include/c++/7/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
from sterilizing.cpp:3:
/usr/include/c++/7/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)
min(const _Tp& __a, const _Tp& __b)
^~~
/usr/include/c++/7/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed:
sterilizing.cpp:31:30: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
lazy[x] = min(lazy[x], logn);
^
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /usr/include/c++/7/complex:45,
from /usr/include/c++/7/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
from sterilizing.cpp:3:
/usr/include/c++/7/bits/stl_algobase.h:243:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
/usr/include/c++/7/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed:
sterilizing.cpp:31:30: note: deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
lazy[x] = min(lazy[x], logn);
^
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from sterilizing.cpp:3:
/usr/include/c++/7/bits/stl_algo.h:3450:5: note: candidate: template<class _Tp> constexpr _Tp std::min(std::initializer_list<_Tp>)
min(initializer_list<_Tp> __l)
^~~
/usr/include/c++/7/bits/stl_algo.h:3450:5: note: template argument deduction/substitution failed:
sterilizing.cpp:31:30: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
lazy[x] = min(lazy[x], logn);
^
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from sterilizing.cpp:3:
/usr/include/c++/7/bits/stl_algo.h:3456:5: note: candidate: template<class _Tp, class _Compare> constexpr _Tp std::min(std::initializer_list<_Tp>, _Compare)
min(initializer_list<_Tp> __l, _Compare __comp)
^~~
/usr/include/c++/7/bits/stl_algo.h:3456:5: note: template argument deduction/substitution failed:
sterilizing.cpp:31:30: note: mismatched types 'std::initializer_list<_Tp>' and 'long long int'
lazy[x] = min(lazy[x], logn);
^
sterilizing.cpp:47:32: error: a function-definition is not allowed here before '{' token
void combine(ll x, ll l, ll d){
^
sterilizing.cpp:52:29: error: a function-definition is not allowed here before '{' token
void setValue(ll x, ll val){
^
sterilizing.cpp:58:30: error: a function-definition is not allowed here before '{' token
void build(ll x, ll l, ll d){
^
sterilizing.cpp:75:45: error: a function-definition is not allowed here before '{' token
void update(ll x, ll l, ll d, ll i, ll val){
^
sterilizing.cpp:91:43: error: a function-definition is not allowed here before '{' token
void reduce(ll x, ll l, ll d, ll i, ll j){
^
sterilizing.cpp:108:40: error: a function-definition is not allowed here before '{' token
ll query(ll x, ll l, ll d, ll i, ll j){
^
sterilizing.cpp: In member function 'int segtree::main()':
sterilizing.cpp:129:6: error: request for member 'build' in '((segtree*)this)->segtree::seg', which is of non-class type 'll [400444][35] {aka long long int [400444][35]}'
seg.build(1, 1, n);
^~~~~
sterilizing.cpp:136:8: error: request for member 'update' in '((segtree*)this)->segtree::seg', which is of non-class type 'll [400444][35] {aka long long int [400444][35]}'
seg.update(1, 1, n, x, y);
^~~~~~
sterilizing.cpp:139:8: error: request for member 'reduce' in '((segtree*)this)->segtree::seg', which is of non-class type 'll [400444][35] {aka long long int [400444][35]}'
seg.reduce(1, 1, n, x, y);
^~~~~~
sterilizing.cpp:142:25: error: request for member 'query' in '((segtree*)this)->segtree::seg', which is of non-class type 'll [400444][35] {aka long long int [400444][35]}'
printf("%lld\n", seg.query(1, 1, n, x, y));
^~~~~
sterilizing.cpp: At global scope:
sterilizing.cpp:146:1: error: expected unqualified-id at end of input
}
^