提交记录 #240

提交时间:2024-11-17 11:26:53
语言:c 状态:Accepted
编译情况:编译成功
code.c: In function ‘main’:
code.c:9:17: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘short int *’ [-Wformat=]
    9 |         scanf("%d %d",&n[k],&m[k]);
      |                ~^     ~~~~~
      |                 |     |
      |                 int * short int *
      |                %hd
code.c:9:20: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘short int *’ [-Wformat=]
    9 |         scanf("%d %d",&n[k],&m[k]);
      |                   ~^        ~~~~~
      |                    |        |
      |                    int *    short int *
      |                   %hd
code.c:18:13: warning: implicit declaration of function ‘gets’; did you mean ‘fgets’? [-Wimplicit-function-declaration]
   18 |             gets(str);
      |             ^~~~
      |             fgets
/usr/bin/ld: /tmp/ccMHerM2.o: in function `main':
code.c:(.text.startup+0xc6): warning: the `gets' function is dangerous and should not be used.
固定测试点#1:
acAccepted
time 0.001s
memory 492 kB
固定测试点#2:
acAccepted
time 0.001s
memory 232 kB
额外测试点#1000:
acAccepted
time 0.003s
memory 556 kB
京ICP备2024093084 号