Little monk and virat c++ Launchpad pitampura

Code-https://ide.codingblocks.com/s/106303
Everything is correct even the test case is giving correct output.But on submitting wrong answer is displayed.
Ques is little monk and virat
ques link-https://hack.codingblocks.com/contests/c/948/1627
Little Monk also met who he thinks is the new God of Indian cricket: Virat Kohli. Now Monk is extremely fond of Kohli – not just as a T20 player, but a player in all formats. He loves the statistics involved in Kohli’s career. Little Monk knows that Kohli has played N matches in all three formats of his career, ODI, T20 and Test Cricket. He wants to show-off his knowledge about Kohli’s career so he decides to answer Q questions asked by Kohli. Kohli gives the Monk three different arrays with Nnumbers each denoting the runs in the ith ODI match, ith Test Match and ith T-20 match respectively. The value of Kohli’s ith match would be the sum of his score in the ith T-20 match, ith Test match and ith ODI match. Kohli knows that Monk is extremely quick at finding the k th smallest value of all his innings, so he twists his query a bit. He asks the Monk to delete the kth smallest value once that is answered by the Monk. If Kohli comes up with a number k which is greater than the number of matches remaining in Kohli’s career, the Monk should say that the answer is 1 So much complication confuses the Little Monk and he asks for your help!

Input Format:
The first line contains an integer N, which denotes the number of matches played by Virat Kohli. The next three lines contain N integers each denoting the number of runs scored in ODI, T20 and Test respectively. The next line contains an integer Q, denoting the number of questions Virat is going to ask. The next Q lines contain an integer K, denoting the Kth smallest value which the Monk has to answer.