secret.cpp: In function 'int Query(int, int)':
secret.cpp:15:9: warning: unused variable 'mid' [-Wunused-variable]
int mid=(L+R)/2;
^~~
secret.cpp: In function 'int main()':
secret.cpp:20:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int N; scanf("%d",&N);
~~~~~^~~~~~~~~
secret.cpp:21:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=0;i<N;i++) scanf("%d",&B[i]);
~~~~~^~~~~~~~~~~~
secret.cpp:23:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int Q; scanf("%d",&Q);
~~~~~^~~~~~~~~
secret.cpp:26:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int x,y; scanf("%d %d",&x,&y);
~~~~~^~~~~~~~~~~~~~~
/tmp/ccBbqA9y.o: In function `main':
secret.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccJBBJ13.o:grader-full.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status