popeala.cpp: In function 'void play(int, int, int, int, int)':
popeala.cpp:23:8: warning: unused variable 'j' [-Wunused-variable]
int i,j,k;
^
popeala.cpp:23:10: warning: unused variable 'k' [-Wunused-variable]
int i,j,k;
^
popeala.cpp: In function 'int main()':
popeala.cpp:35:10: warning: unused variable 'k' [-Wunused-variable]
int i,j,k,l,a,b,c,d;
^
popeala.cpp:35:12: warning: unused variable 'l' [-Wunused-variable]
int i,j,k,l,a,b,c,d;
^
popeala.cpp:35:14: warning: unused variable 'a' [-Wunused-variable]
int i,j,k,l,a,b,c,d;
^
popeala.cpp:35:16: warning: unused variable 'b' [-Wunused-variable]
int i,j,k,l,a,b,c,d;
^
popeala.cpp:35:18: warning: unused variable 'c' [-Wunused-variable]
int i,j,k,l,a,b,c,d;
^
popeala.cpp:35:20: warning: unused variable 'd' [-Wunused-variable]
int i,j,k,l,a,b,c,d;
^
popeala.cpp:36:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&t,&s);
~~~~~^~~~~~~~~~~~~~~~~~~
popeala.cpp:37:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=t;i++) scanf("%lld",&qs[i]), qs[i]+=qs[i-1];
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
popeala.cpp:39:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %s",str+1);
~~~~~^~~~~~~~~~~~~
popeala.cpp: In function 'void play(int, int, int, int, int)':
popeala.cpp:32:6: warning: 'best' may be used uninitialized in this function [-Wmaybe-uninitialized]
play(A, l, m-1, ll, best); play(A, m+1, r, best, rr);
~~~~^~~~~~~~~~~~~~~~~~~~~