foo.cc: In function 'int main()':
foo.cc:32:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
32 | gets(num);
| ~~~~^~~~~
In file included from /nix/store/h5kvfrjmpw792v8jg7nrzfkffmn0iyy8-gcc-12.3.0/include/c++/12.3.0/cstdio:42,
from stdc++.h:46:
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
| ^~~~
foo.cc:35:13: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
35 | gets(buf);
| ~~~~^~~~~
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:605:14: note: declared here
605 | extern char *gets (char *__s) __wur __attribute_deprecated__;
| ^~~~
foo.cc:60:34: error: invalid operands of types 'int [1455]' and 'int' to binary 'operator*'
60 | int tm = mods[0] * mods[i][l-1] % m;
| ~~~~~~~ ^ ~~~~~~~~~~~~
| | |
| int [1455] int
foo.cc:74:42: error: invalid operands of types 'int [1455]' and 'int' to binary 'operator*'
74 | int tm = mods[0] * mods[i][j-1] * mods[j][l-1] % m;
| ~~~~~~~ ^ ~~~~~~~~~~~~
| | |
| int [1455] int
[Hydro](https://hydro.ac)提供评测服务