/ 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 Runtime Error Segmentation fault 1ms 352.0 KiB

信息

递交者
类型
自测
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2021-07-25 15:21:51
评测时间
2021-07-25 15:21:51
评测机
分数
0
总耗时
1ms
峰值内存
352.0 KiB