记录详情

Accepted

foo.c: In function 'Input':
foo.c:40:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[20]' [-Wformat=]
   scanf("%s%d%d%s%s%d",&ss[i].Name,&ss[i].grade1,&ss[i].grade2,&ss[i].leader,&ss[i].west,&ss[i].cnt);
          ~^            ~~~~~~~~~~~
foo.c: In function 'main':
foo.c:20:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ^~~~~~~~~~~~~~
foo.c: In function 'Input':
foo.c:40:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%s%d%d%s%s%d",&ss[i].Name,&ss[i].grade1,&ss[i].grade2,&ss[i].leader,&ss[i].west,&ss[i].cnt);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 0ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 0ms 256.0 KiB
#5 Accepted 0ms 256.0 KiB
#6 Accepted 1ms 256.0 KiB
#7 Accepted 0ms 256.0 KiB
#8 Accepted 1ms 256.0 KiB
#9 Accepted 0ms 256.0 KiB
#10 Accepted 0ms 256.0 KiB

信息

递交者
类型
递交
题目
P1154 谁拿了最多奖学金
比赛
南京师范大学2021年寒假校队训练(基础组)
语言
C
递交时间
2021-02-03 09:12:39
评测时间
2021-02-03 09:12:39
评测机
分数
100
总耗时
9ms
峰值内存
256.0 KiB