I’ve run the code below on VSCODE and it’s working just fine , but Codechef is giving me a compilation error , Please help
Code:
#include <stdio.h>
#include <string.h>
int main()
{
int t;
scanf("%d",&t);
for (int i = 0; i < t; i++)
{
char n[1000],p[1000];
scanf("%s", n);
strcpy(p , strrev(n));
printf("%s\n",p);
}
return 0;
}