0_0_38671595_15431.cpp: In function 'Tree& up(Tree&, Tree&)':
0_0_38671595_15431.cpp:16:18: error: 'min' was not declared in this scope
16 | ans.minn=min(ls.minn,rs.minn);
| ^~~
0_0_38671595_15431.cpp:16:18: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:61,
from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:5785:5: note: 'std::min'
5785 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:39,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:63:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_util.h:733:29: note: 'std::ranges::min'
733 | inline constexpr __min_fn min{};
| ^~~
0_0_38671595_15431.cpp: In function 'Tree query(int, int, int, int, int)':
0_0_38671595_15431.cpp:122:24: error: cannot bind non-const lvalue reference of type 'Tree&' to an rvalue of type 'Tree'
122 | return up(query(node<<1,l,r,L,mid),query(node<<1|1,l,r,mid+1,R));
| ~~~~~^~~~~~~~~~~~~~~~~~~
0_0_38671595_15431.cpp:12:16: note: initializing argument 1 of 'Tree& up(Tree&, Tree&)'
12 | Tree &up(Tree &ls,Tree &rs)
| ~~~~~~^~
0_0_38671595_15431.cpp: In function 'int main()':
0_0_38671595_15431.cpp:126:9: error: 'ios' has not been declared
126 | ios::sync_with_stdio(0);
| ^~~
0_0_38671595_15431.cpp:127:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
127 | cin.tie(0);
| ^~~
| std::cin
In file included from .\stdc++.h:146:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
0_0_38671595_15431.cpp:128:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
128 | cout.tie(0);
| ^~~~
| std::cout
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
|