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"}