/ JoyAc /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:16:9: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[50]' [-Wformat=]
   16 | scanf("%s%d%d %c %c %d",&a[i].name,&a[i].data,
      |        ~^               ~~~~~~~~~~
      |         |               |
      |         char*           char (*)[50]
foo.cc:14:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   14 |    scanf("%d",&n);
      |    ~~~~~^~~~~~~~~
foo.cc:16:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   16 | scanf("%s%d%d %c %c %d",&a[i].name,&a[i].data,
      | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   17 | &a[i].pin,&a[i].a1,&a[i].a2,&a[i].wen);
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 2ms 384.0 KiB
#8 Accepted 2ms 384.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2021-12-18 13:53:17
评测时间
2021-12-18 13:53:17
评测机
分数
100
总耗时
22ms
峰值内存
384.0 KiB