/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:114:21: warning: iteration 29 invokes undefined behavior [-Waggressive-loop-optimizations]
       if (floorCnt[i] >= max){
           ~~~~~~~~~~^
foo.cc:113:23: note: within this loop
     for (int i = 1; i <= 30; i++){
                     ~~^~~~~
foo.cc:120:31: warning: 'validNum' may be used uninitialized in this function [-Wmaybe-uninitialized]
     avgNights = totalNights / double(validNum);
                               ^~~~~~~~~~~~~~~~
foo.cc:120:15: warning: 'totalNights' may be used uninitialized in this function [-Wmaybe-uninitialized]
     avgNights = totalNights / double(validNum);
     ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-07-08T08:31:51.482Z","handle":"2020-07-08T08:31:51.482Z","done":"2020-07-08T08:31:52.145Z"}
# 状态 耗时 内存占用
#1 Runtime Error 1ms 256.0 KiB

信息

递交者
类型
自测
题目
P1911 珠心算测验
语言
C++
递交时间
2020-07-08 16:31:51
评测时间
2020-07-08 16:31:51
评测机
分数
0
总耗时
1ms
峰值内存
256.0 KiB