/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:19:11: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[21]' [-Wformat=]
   19 |   scanf("%s%d%d%s%s%d",&stu[i].name,&stu[i].end_score,&stu[i].class_score,leade,wester,&stu[i].passage);
      |          ~^            ~~~~~~~~~~~~
      |           |            |
      |           char*        char (*)[21]
foo.cc:15:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   15 |  scanf("%d",&n);
      |  ~~~~~^~~~~~~~~
foo.cc:19:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   19 |   scanf("%s%d%d%s%s%d",&stu[i].name,&stu[i].end_score,&stu[i].class_score,leade,wester,&stu[i].passage);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 4ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 2ms 384.0 KiB
#8 Accepted 5ms 384.0 KiB
#9 Wrong Answer Read GqsbbvwAF, expect RaC. 3ms 384.0 KiB
#10 Accepted 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2022-07-29 11:30:56
评测时间
2022-07-29 11:30:56
评测机
分数
90
总耗时
33ms
峰值内存
384.0 KiB