Question Link : https://www.codechef.com/problems/WALKFAST
I was trying to solve the above mentioned question. But because of logical error it was not accepted. After few trial I looked into the submissions of other people. Which was accepted.
Copied Solution link : https://www.codechef.com/viewsolution/28415135
Link of submission made by me
link1 : https://www.codechef.com/viewsolution/28415817 (my code with same logic only difference is using vector instead of array not accepted)
link2 : https://www.codechef.com/viewsolution/28415843 (@sachin_4099 code with vector not accepted)
Link of submission which is accepted without use of vector
link : https://www.codechef.com/viewsolution/28415865
Please explain why I am getting wrong answer or run time error when I am using vector in place general array. I tried many times but every time the solution was rejected. Explain the fault in my code whose link is mentioned above. Link of whole submission of FASTWALK is : https://www.codechef.com/status/WALKFAST,hariomdeo