cake3.cpp:15:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main() {
^
cake3.cpp: In function 'int main()':
cake3.cpp:35:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s.size() < m - 2) {
~~~~~~~~~^~~~~~~
cake3.cpp:46:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s.size() == m - 2) {
~~~~~~~~~^~~~~~~~
cake3.cpp:16: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:18:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld", &ar[i].sc, &ar[i].fr);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~