/ Vijos /

记录详情

Compile Error

foo.c:22:9: warning: bad option '-fwhole-program' to pragma 'optimize' [-Wpragmas]
   22 | #pragma GCC optimize("-fwhole-program")
      |         ^~~
foo.c:29:9: warning: bad option '-fstrict-overflow' to pragma 'optimize' [-Wpragmas]
   29 | #pragma GCC optimize("-fstrict-overflow")
      |         ^~~
foo.c:31:9: warning: bad option '-fcse-skip-blocks' to pragma 'optimize' [-Wpragmas]
   31 | #pragma GCC optimize("-fcse-skip-blocks")
      |         ^~~
foo.c:45:9: warning: bad option '-funsafe-loop-optimizations' to pragma 'optimize' [-Wpragmas]
   45 | #pragma GCC optimize("-funsafe-loop-optimizations")
      |         ^~~
foo.c:50:1: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   50 | char *gets(char *str);
      | ^~~~
foo.c:50:1: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.c:50:1: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.c:50:1: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.c:64:1: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   64 | {
      | ^
foo.c:64:1: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.c:64:1: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.c:64:1: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.c:80:1: warning: bad option '-fwhole-program' to attribute 'optimize' [-Wattributes]
   80 | {
      | ^
foo.c:80:1: warning: bad option '-fstrict-overflow' to attribute 'optimize' [-Wattributes]
foo.c:80:1: warning: bad option '-fcse-skip-blocks' to attribute 'optimize' [-Wattributes]
foo.c:80:1: warning: bad option '-funsafe-loop-optimizations' to attribute 'optimize' [-Wattributes]
foo.c: In function 'main':
foo.c:82:9: warning: 'gets' is deprecated [-Wdeprecated-declarations]
   82 |         gets(num);
      |         ^~~~
In file included from foo.c:49:
/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.c:83:13: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   83 |         l = strlen(num);
      |             ^~~~~~
foo.c:50:1: note: include '<string.h>' or provide a declaration of 'strlen'
   49 | #include<stdio.h>
  +++ |+#include <string.h>
   50 | char *gets(char *str);
foo.c:83:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   83 |         l = strlen(num);
      |             ^~~~~~
foo.c:83:13: note: include '<string.h>' or provide a declaration of 'strlen'
foo.c:85:9: warning: 'gets' is deprecated [-Wdeprecated-declarations]
   85 |         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.c:110:34: error: invalid operands to binary * (have 'int *' and 'int')
  110 |                 int tm = mods[0] * mods[i][l-1] % m;
      |                          ~~~~    ^ ~~~~~~~~~~~~
      |                          |                |
      |                          int *            int
foo.c:124:42: error: invalid operands to binary * (have 'int *' and 'int')
  124 |                         int tm = mods[0] * mods[i][j-1] * mods[j][l-1] % m;
      |                                  ~~~~    ^ ~~~~~~~~~~~~
      |                                  |                |
      |                                  int *            int
[Hydro](https://hydro.ac)提供评测服务

信息

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