/in/foo.cc: In function 'bool same(int, int, int)':
/in/foo.cc:12:15: warning: unused variable 'dlt' [-Wunused-variable]
int t1,t2,dlt;
^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:34:5: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(st);
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:34:12: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
gets(st);
^
In file included from /usr/include/c++/6/cstdio:42:0,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:50:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%I64d\n",ans);
^
/tmp/cc8URVzp.o: In function `main':
foo.cc:(.text.startup+0x27): warning: the `gets' function is dangerous and should not be used.