Help me in solving LJAJAG26 problem

My issue

Why showing error

My code

#include <stdio.h>

int main()
{
	int num,count=0;
	scanf("%d",&num);
	while(num>0)
    {
       count=count+1;
       num=num/10;
    }
    printf("%d",count);
}


Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC37/problems/LJAJAG26