In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from popa.cpp:9:
/usr/include/c++/10/bits/stl_queue.h: In instantiation of 'class std::queue<int, std::pair<int, int> >':
popa.cpp:54:29: required from here
/usr/include/c++/10/bits/stl_queue.h:138:47: error: no type named 'value_type' in 'struct std::pair<int, int>'
138 | typedef typename _Sequence::value_type value_type;
| ^~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:139:46: error: no type named 'reference' in 'struct std::pair<int, int>'
139 | typedef typename _Sequence::reference reference;
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:140:51: error: no type named 'const_reference' in 'struct std::pair<int, int>'
140 | typedef typename _Sequence::const_reference const_reference;
| ^~~~~~~~~~~~~~~
/usr/include/c++/10/bits/stl_queue.h:141:46: error: no type named 'size_type' in 'struct std::pair<int, int>'
141 | typedef typename _Sequence::size_type size_type;
| ^~~~~~~~~
popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:55:7: error: 'class std::queue<int, std::pair<int, int> >' has no member named 'push'
55 | q.push({root,{0, n - 1}});
| ^~~~
popa.cpp:57:19: error: 'class std::queue<int, std::pair<int, int> >' has no member named 'front'
57 | pii a = q.front();
| ^~~~~
popa.cpp:65:15: error: 'class std::queue<int, std::pair<int, int> >' has no member named 'push'
65 | q.push({x,{prvi,trenutni - 1}});
| ^~~~
popa.cpp:70:15: error: 'class std::queue<int, std::pair<int, int> >' has no member named 'push'
70 | q.push({x,{trenutni + 1, drugi}});
| ^~~~
popa.cpp:53:9: warning: unused variable 'interval1' [-Wunused-variable]
53 | int interval1 = 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 popa.cpp:9:
/usr/include/c++/10/bits/stl_queue.h: In instantiation of 'bool std::queue<_Tp, _Sequence>::empty() const [with _Tp = int; _Sequence = std::pair<int, int>]':
popa.cpp:56:20: required from here
/usr/include/c++/10/bits/stl_queue.h:204:18: error: 'const struct std::pair<int, int>' has no member named 'empty'
204 | { return c.empty(); }
| ~~^~~~~
/usr/include/c++/10/bits/stl_queue.h: In instantiation of 'void std::queue<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::pair<int, int>]':
popa.cpp:58:15: required from here
/usr/include/c++/10/bits/stl_queue.h:301:4: error: 'struct std::pair<int, int>' has no member named 'pop_front'
301 | c.pop_front();
| ~~^~~~~~~~~
popa.cpp: In function 'int solver(int, int, int*, int*)':
popa.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type]
19 | }
| ^