/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'bool cmp(note, note)':
foo.cc:30:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
foo.cc: In function 'int main()':
foo.cc:82:37: warning: 'maxc' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout <<a[maxc].name<<endl<<a[maxc].zj<<endl<<sum;
                                     ^~
foo.cc:70:9: warning: 'max' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(max<a[i+1].zj) //如果第a+1个学生的总奖金大于 max
      ~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 404.0 KiB
#2 Runtime Error Segmentation fault 2ms 428.0 KiB
#3 Accepted 2ms 416.0 KiB
#4 Runtime Error Segmentation fault 1ms 384.0 KiB
#5 Accepted 1ms 384.0 KiB
#6 Accepted 2ms 424.0 KiB
#7 Runtime Error Segmentation fault 1ms 412.0 KiB
#8 Accepted 1ms 384.0 KiB
#9 Runtime Error Segmentation fault 1ms 384.0 KiB
#10 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2021-07-25 15:19:47
评测时间
2021-07-25 15:19:47
评测机
分数
60
总耗时
20ms
峰值内存
428.0 KiB