Help me in solving CHEFSTUD problem

My issue

code is getting runtime error

My code

#include <stdio.h>

int main() {
	int G;
	scanf("%d",&G);
	while(G--)
	{
	    char s[10001];
	    scanf("%s",s);
	    int l=strlen(s);
	    int c=0;
	    for(int i=0;i<l-1;i++)
	    {
	        if(s[i]=='<'&&s[i+1]=='>')
	        {
	            c++;
	        }
	    }
	    printf("%d\n",c);
}
return 0;
}

Learning course: Roadmap to 3*
Problem Link: https://www.codechef.com/learn/course/klu-roadmap-3star/KLURMP300A/problems/CHEFSTUD