hidden.cpp:22:16: error: 'x2' has not been declared
22 | ll query(ll x1,x2,val){
| ^~
hidden.cpp:22:19: error: 'val' has not been declared
22 | ll query(ll x1,x2,val){
| ^~~
hidden.cpp: In function 'long long int query(long long int, int, int)':
hidden.cpp:26:8: error: 'val' was not declared in this scope
26 | v.pb(val);
| ^~~
hidden.cpp:28:16: error: 'x2' was not declared in this scope; did you mean 'x1'?
28 | for(ll i=1;i<=x2;i++)
| ^~
| x1
hidden.cpp:30:9: error: 'val' was not declared in this scope
30 | v.pb((val^1));
| ^~~
hidden.cpp:32:9: error: 'isSequence' was not declared in this scope; did you mean 'findSequence'?
32 | return isSequence(v);
| ^~~~~~~~~~
| findSequence
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++)
| ~^~~~~~~~~~~~