gift1.cc USACO file, does not work (throws Signal 8 exception on test case 1, due to floating point exception or out of bounds reference)