minerals.cpp: In function 'void Solve(int)':
minerals.cpp:73:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
73 | auto [cur,l,r,flag2]=Q.front();
| ^
minerals.cpp:81:13: error: 'mm' was not declared in this scope; did you mean 'tm'?
81 | mm=max(l,min(r-1,l+int(0.5*len)));
| ^~
| tm
minerals.cpp:84:13: error: 'mm' was not declared in this scope; did you mean 'tm'?
84 | mm=min(r-1,max(l,l+int(0.5*len)));
| ^~
| tm
minerals.cpp:88:23: error: 'mm' was not declared in this scope; did you mean 'tm'?
88 | for(int i=mm+1;i<=r;i++){
| ^~
| tm
minerals.cpp:93:28: error: 'mm' was not declared in this scope; did you mean 'tm'?
93 | for(int i=l;i<=mm;i++){
| ^~
| tm
minerals.cpp:109:25: error: 'mm' was not declared in this scope; did you mean 'tm'?
109 | Q.push({L,l,mm,1});
| ^~
| tm
minerals.cpp:109:30: error: no matching function for call to 'std::queue<std::tuple<std::vector<int, std::allocator<int> >, int, int, bool> >::push(<brace-enclosed initializer list>)'
109 | Q.push({L,l,mm,1});
| ^
In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from minerals.cpp:1:
/usr/include/c++/10/bits/stl_queue.h:265:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>; _Sequence = std::deque<std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>, std::allocator<std::tuple<std::vector<int, std::allocator<int> >, int, int, bool> > >; std::queue<_Tp, _Sequence>::value_type = std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>]'
265 | push(const value_type& __x)
| ^~~~
/usr/include/c++/10/bits/stl_queue.h:265:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>&'}
265 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_queue.h:270:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>; _Sequence = std::deque<std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>, std::allocator<std::tuple<std::vector<int, std::allocator<int> >, int, int, bool> > >; std::queue<_Tp, _Sequence>::value_type = std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>]'
270 | push(value_type&& __x)
| ^~~~
/usr/include/c++/10/bits/stl_queue.h:270:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<std::tuple<std::vector<int, std::allocator<int> >, int, int, bool> >::value_type&&' {aka 'std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>&&'}
270 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
minerals.cpp:112:23: error: 'mm' was not declared in this scope; did you mean 'tm'?
112 | Q.push({R,mm+1,r,0});
| ^~
| tm
minerals.cpp:112:32: error: no matching function for call to 'std::queue<std::tuple<std::vector<int, std::allocator<int> >, int, int, bool> >::push(<brace-enclosed initializer list>)'
112 | Q.push({R,mm+1,r,0});
| ^
In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from minerals.cpp:1:
/usr/include/c++/10/bits/stl_queue.h:265:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>; _Sequence = std::deque<std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>, std::allocator<std::tuple<std::vector<int, std::allocator<int> >, int, int, bool> > >; std::queue<_Tp, _Sequence>::value_type = std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>]'
265 | push(const value_type& __x)
| ^~~~
/usr/include/c++/10/bits/stl_queue.h:265:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>&'}
265 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_queue.h:270:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>; _Sequence = std::deque<std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>, std::allocator<std::tuple<std::vector<int, std::allocator<int> >, int, int, bool> > >; std::queue<_Tp, _Sequence>::value_type = std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>]'
270 | push(value_type&& __x)
| ^~~~
/usr/include/c++/10/bits/stl_queue.h:270:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::queue<std::tuple<std::vector<int, std::allocator<int> >, int, int, bool> >::value_type&&' {aka 'std::tuple<std::vector<int, std::allocator<int> >, int, int, bool>&&'}
270 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~