提交记录 #388

提交时间:2024-12-03 16:18:07
语言:c 状态:Unaccepted
编译情况:编译成功
code.c: In function ‘main’:
code.c:11:17: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=]
   11 |         scanf("%s", all[i]);
      |                ~^   ~~~~~~
      |                 |      |
      |                 char * int
code.c:13:17: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
   13 |         scanf("%d", grade[i]);
      |                ~^   ~~~~~~~~
      |                 |        |
      |                 int *    int
code.c:25:22: warning: unused variable ‘name’ [-Wunused-variable]
   25 |                 char name = all[j];
      |                      ^~~~
code.c:34:18: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=]
   34 |         printf("%s,%d\n",all[i],grade[i]);
      |                 ~^       ~~~~~~
      |                  |          |
      |                  char *     int
      |                 %d
code.c:11:24: warning: ‘*((char *)&all)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   11 |         scanf("%s", all[i]);
      |                     ~~~^~~
code.c:13:9: warning: ‘*(int *)((char *)&grade+(<unknown>)*4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   13 |         scanf("%d", grade[i]);
      |         ^~~~~~~~~~~~~~~~~~~~~
固定测试点#1:
waWrong Answer
time 0.000s
memory 492 kB
固定测试点#2:
waWrong Answer
time 0.000s
memory 232 kB
固定测试点#3:
waWrong Answer
time 0.000s
memory 232 kB
附加测试点暂不可用
... 不可用
time N/A
memory N/A
京ICP备2024093084 号