Please Help

Someone please tell me why i am not getting this accepted.
Question link : https://www.codechef.com/problems/CHEFSQ
Code link : https://www.codechef.com/viewsolution/12343916

you are using int main() and doesn’t return anything from the program plz return something int and again try may be it will help.

@k1k4_313 You are finding contiguous subsequence, and in the question it isn’t mentioned anywhere that you have to find the contiguous subsequence. So, you just need to check whether the sequence F is present or not in original sequence, it may be non-contiguous as well. For, implementation details you can refer to your’s solution with above corrections being made (link).

1 Like

got it… Thanks… :slight_smile:

1 Like

@k1k4_313 if you feel your question has been answered mark it as accepted.