sequence.cpp: In function 'int main()':
sequence.cpp:21:11: warning: unused variable 'j' [-Wunused-variable]
21 | int i,j,now;
| ^
sequence.cpp:22:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
22 | scanf("%d %d",&n,&k);
| ~~~~~^~~~~~~~~~~~~~~
sequence.cpp:24:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | scanf("%lld",&a[i]);
| ~~~~~^~~~~~~~~~~~~~
sequence.cpp: In function 'void play(int, int, int, int, int)':
sequence.cpp:17:9: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
17 | play(st,l,mid-1,optl,pos);
| ~~~~^~~~~~~~~~~~~~~~~~~~~