stove.cpp: In function 'int main()':
stove.cpp:11:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&k);
~~~~~^~~~~~~~~~~~~~
stove.cpp:18:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&tbl[i]);
~~~~~^~~~~~~~~~~~~~
stove.cpp:29:6: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
int ans=b-a;
^~~
stove.cpp:29:6: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]