vector i{ 1,2,88,42,99 };
You’re misunderstanding how Spoj works. You need to read the number from the input, not hard-code them in the source code. The numbers given in the question are just a sample, an example, the real ones used in the actual test cases will be different, and you won’t know what they are.
And you shouldn’t be writing " no :" either.