/ Vijos /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1455 最小与最大
语言
C++
递交时间
2023-11-13 21:31:57
评测时间
2023-11-13 21:31:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes