secret.cpp: In function 'void Init(int, int*)':
secret.cpp:9:33: error: 'secret' was not declared in this scope
for(int i=0;i<N-1;i++) T[i]=secret(A[i],A[i+1]);
^~~~~~
secret.cpp:9:33: note: suggested alternative: 'Secret'
for(int i=0;i<N-1;i++) T[i]=secret(A[i],A[i+1]);
^~~~~~
Secret
secret.cpp: In function 'int Query(int, int)':
secret.cpp:16:12: error: 'secret' was not declared in this scope
return secret(Query(L,(L+R)/2),Query((L+R)/2+1,R));
^~~~~~
secret.cpp:16:12: note: suggested alternative: 'Secret'
return secret(Query(L,(L+R)/2),Query((L+R)/2+1,R));
^~~~~~
Secret
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);
~~~~~^~~~~~~~~~~~~~~