ZCO Wormhole

Hello, I have been trying to solve CodeChef: Practical coding for everyone

This is my current code. #include <vector>#include <algorithm>#include <iostream>using namespace - Pastebin.com

It fails on test case 14 only with Wrong Answer

It was a very stupid mistake. I forgot that one could begin competition at the very moment the person arrived using a wormhole. Correct code - #include <vector>#include <algorithm>#include <iostream>using namespace - Pastebin.com