Comments
On IGrenadiersCodeforces Compiler ???, 5 years ago
0

yeah that's for out of bounds I know , and even when I added the condition if(idx<v.size()-1) then check for idx+1 , even in that case , the compiler picks 6 as lower bound and I really don't know how codeblocks and ideone.com are some how giving correct answers

On IGrenadiersCodeforces Compiler ???, 5 years ago
0

I did add the if condition but still for some reason it picks the lower bound as 6 like what ?

On IGrenadiersCodeforces Compiler ???, 5 years ago
0

Auto comment: topic has been updated by IGrenadiers (previous revision, new revision, compare).

On IGrenadiersCodeforces Compiler ???, 5 years ago
0

you can check the code mate there is no getchar and this thing has happened with me even before and now its way more tilting and irritating