popeala.cpp: In function 'void Solve(int, int, int, int, int)':
popeala.cpp:21:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1;
~^~
popeala.cpp: In function 'int main()':
popeala.cpp:37:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%i %i %i",&n,&t,&s);
~~~~~^~~~~~~~~~~~~~~~~~~~~
popeala.cpp:38:48: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1;i<=t;i++) scanf("%lld",&pts[i]),pts[i]+=pts[i-1];
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
popeala.cpp:41:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",res[i]+1);
~~~~~^~~~~~~~~~~~~~~
popeala.cpp: In function 'void Solve(int, int, int, int, int)':
popeala.cpp:31:7: warning: 'opt' may be used uninitialized in this function [-Wmaybe-uninitialized]
Solve(x,l,mid-1,L,opt);
~~~~~^~~~~~~~~~~~~~~~~