Why the code is showing "strlen()" not found in DC Compiler

#include
using namespace std;
int stringtoint(char *a, int n)
{
if(n == 0)
{
return 0;
}
int digit = a[n-1] - ‘0’;
int small_ans = stringtoint(a,n-1);
return small_ans * 10 + digit;
}
main()
{
char a[] = “1234”;
int len = strlen(a);
int x = stringtoint(a,len);
cout<<x;
return 0;
}

hello @dhruvtrehan45
u need include cstring file.

add this in ur program.
#include< cstring >