terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 8) >= this->size() (which is 8)

前端 未结 0 546
生来不讨喜
生来不讨喜 2020-12-08 02:45

I was trying to solve a car refueling question to decide the minimum number of refills. The program throws the above error at runtime.

Here is my code:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题