Reminder: in case of any technical issues, you can use the lightweight website m1.codeforces.com, m2.codeforces.com, m3.codeforces.com. ×

kelvin_0179's blog

By kelvin_0179, history, 5 days ago, In English,

https://codeforces.com/contest/1249/submission/74376059

i dont understand what is the error saying . I need help on this please!

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
5 days ago, # |
  Vote: I like it 0 Vote: I do not like it

The size of vector is always 10. But you trying to use index which is out of bound. For example, Try: 7 10000 3620 14 13 6 2 1

  • »
    »
    5 days ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    couldnt see it at first but after u pointed it out ...now the code works ,thanks a lot bro!!!! really appreciate it!