cake3.cpp: In function 'int main()':
cake3.cpp:30:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(ss.size()>m)
~~~~~~~~~^~
cake3.cpp:35:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(ss.size()==m)
~~~~~~~~~^~~
cake3.cpp:14:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
~~~~~^~~~~~~~~~~~~~~
cake3.cpp:17:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&arr[i].S,&arr[i].F);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~