overflow issue?
Difference between en1 and en2, changed 55 character(s)
I was solving [This](https://mirror.codeforces.com/problemset/problem/1477/B) problem and submitted [submission:106080441].I am getting runtime errors on test 4.The codeforces diagnoser says it is because it is of integer overflow I changed everything to long long but it gives me again the same error.Can anyone say Whats wrong with my code please?Thanks.

Edit:Ok I got it I should have checked lx<a.size();

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Taha1506 2021-01-31 12:03:28 55 Tiny change: 'se?Thanks.' -> 'se?Thanks.\n\nEdit:Ok I got it I should have checked lx<a.size();'
en1 English Taha1506 2021-01-31 11:46:31 364 Initial revision (published)