/in/foo.cc: In function 'int main()':
/in/foo.cc:21:33: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
for (int i = 0; i < n; ++i) gets(mp[i]);
^~~~
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:21:43: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
for (int i = 0; i < n; ++i) gets(mp[i]);
^
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:75:40: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int64 {aka long long int}' [-Wformat=]
printf("%I64d\n", (ans + MOD) % MOD);
^
/tmp/ccIwPM4T.o: In function `main':
foo.cc:(.text.startup+0x4d): warning: the `gets' function is dangerous and should not be used.