What this error means ?

Revision en1, by travelers, 2017-01-12 11:15:31

I am getting runtime error in this problem link: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=752

code: http://ideone.com/TFRDTu

it says "terminate called after throwing an instance of 'std::length_error' what(): vector::_M_fill_insert"

What does it mean and how to solve it TIA

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English travelers 2017-01-12 11:15:31 367 Initial revision (published)