/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:14:109: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char**' [-Wformat=]
  for (int i = 0; scanf("%s %d %d %d %d %d", &stu[i].a, &stu[i].b, &stu[i].c, &stu[i].d, &stu[i].e, &stu[i].f) != EOF;) {
                                             ~~~~~~~~~                                                       ^
foo.cc:10:6: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
  int temp;
      ^~~~
foo.cc:13:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &n);
  ~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 0ms 256.0 KiB
#2 Runtime Error Segmentation fault 0ms 256.0 KiB
#3 Runtime Error Segmentation fault 0ms 256.0 KiB
#4 Runtime Error Segmentation fault 0ms 256.0 KiB
#5 Runtime Error Segmentation fault 0ms 256.0 KiB
#6 Runtime Error Segmentation fault 0ms 256.0 KiB
#7 Runtime Error Segmentation fault 0ms 256.0 KiB
#8 Runtime Error Segmentation fault 0ms 256.0 KiB
#9 Runtime Error Segmentation fault 0ms 256.0 KiB
#10 Runtime Error Segmentation fault 0ms 256.0 KiB

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2021-11-03 19:50:42
评测时间
2021-11-03 19:50:42
评测机
分数
0
总耗时
7ms
峰值内存
256.0 KiB