/ JoyAc /

记录详情

Wrong Answer

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 4ms 384.0 KiB
#2 Wrong Answer 3,4d2 < 315050XWWpW < 15850 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 1ms 384.0 KiB
#7 Accepted 2ms 384.0 KiB
#8 Accepted 4ms 384.0 KiB
#9 Wrong Answer 3,4d2 < 249600GqsbbvwAF < 1200 3ms 384.0 KiB
#10 Accepted 2ms 384.0 KiB

信息

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