BOOKCHEF Problem - CodeChef for this problem , i am getting a runtime error .
Here’s my code CodeChef: Practical coding for everyone
You are trying to access a vector as a array in line 29 as
if(f==special[j])
this is possible giving you a RE. Try using
vector<int> special(n);
Now you can use it as array.
Thanks for your help ,but its not working . And,
RAINBOWA Problem - CodeChef :: problem
CodeChef: Practical coding for everyone :: Solution
here i used vector as an array, it got accepted
Hey, how you resolved runtime error then?