carnival.cpp: In function 'int ask(std::vector<int>)':
carnival.cpp:16:27: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d ", V.size());
~~~~~~~~^
carnival.cpp:17:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(auto it : V) printf("%d ", it); printf("\n");
^~~
carnival.cpp:17:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(auto it : V) printf("%d ", it); printf("\n");
^~~~~~
carnival.cpp: In function 'int main()':
carnival.cpp:49:27: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=lo+hi>>1;
~~^~~
carnival.cpp:37:12: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^
carnival.cpp: In function 'int ask(std::vector<int>)':
carnival.cpp:21:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
~~~~~^~~~~~~~~~
carnival.cpp: In function 'int main()':
carnival.cpp:39:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
~~~~~^~~~~~~~~~