hidden.cpp: In function 'bool query(std::vector<int>)':
hidden.cpp:34:15: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
34 | if (a.size() > n) return false;
| ~~~~~~~~~^~~
hidden.cpp: In lambda function:
hidden.cpp:28:17: warning: statement has no effect [-Wunused-value]
28 | #define DE(...) 0
| ^
hidden.cpp:51:3: note: in expansion of macro 'DE'
51 | DE(l, r, sum);
| ^~
hidden.cpp: In function 'std::vector<int> findSequence(int)':
hidden.cpp:28:17: warning: statement has no effect [-Wunused-value]
28 | #define DE(...) 0
| ^
hidden.cpp:54:2: note: in expansion of macro 'DE'
54 | DE(n);
| ^~
hidden.cpp:58:53: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
58 | while (Z.size() == O.size() && Z.size() + O.size() < n) {
| ~~~~~~~~~~~~~~~~~~~~^~~
hidden.cpp:71:31: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
71 | while (Z.size () + O.size () < n)
| ~~~~~~~~~~~~~~~~~~~~~~^~~
hidden.cpp: In lambda function:
hidden.cpp:83:13: error: no matching function for call to 'std::queue<std::pair<int, int> >::push(int)'
83 | q.push(m+1);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from hidden.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]'
259 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:259:30: note: no known conversion for argument 1 from 'int' to 'const value_type&' {aka 'const std::pair<int, int>&'}
259 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/stl_queue.h:264:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]'
264 | push(value_type&& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:264:25: note: no known conversion for argument 1 from 'int' to 'std::queue<std::pair<int, int> >::value_type&&' {aka 'std::pair<int, int>&&'}
264 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
hidden.cpp:91:14: error: no matching function for call to 'std::queue<std::pair<int, int> >::push(std::tuple_element<0, std::pair<int, int> >::type&)'
91 | q.push(u);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from hidden.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]'
259 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:259:30: note: no known conversion for argument 1 from 'std::tuple_element<0, std::pair<int, int> >::type' {aka 'int'} to 'const value_type&' {aka 'const std::pair<int, int>&'}
259 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/stl_queue.h:264:7: note: candidate: 'void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]'
264 | push(value_type&& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:264:25: note: no known conversion for argument 1 from 'std::tuple_element<0, std::pair<int, int> >::type' {aka 'int'} to 'std::queue<std::pair<int, int> >::value_type&&' {aka 'std::pair<int, int>&&'}
264 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
grader.cpp: In function 'int main()':
grader.cpp:28:26: warning: format '%d' expects argument of type 'int', but argument 3 has type 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
28 | fprintf (fifo_out, "%d\n", ans.size ());
| ~^ ~~~~~~~~~~~
| | |
| int std::vector<int>::size_type {aka long unsigned int}
| %ld
grader.cpp:29:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | for (int i=0; i<ans.size () && i < N; i++)
| ~^~~~~~~~~~~~