想知道这段代码要怎么改才能实现功能

//#include
//#include
//int main()
//{
//    char str1[500]={'\0'};
//    char str2[500]={'\0'};
//    int num[500]={0};
//    int count =0;
//    gets(str2);
//    gets(str1);
//    for(int i=0;i//查找有无or次数
//    {
//        int j=0;
//        for( j;j//        {
//            if(str1[i+j]!=str2[j])
//                break;
//        }
//        if(j==strlen(str2)&&str1[i+j]==' '&&str1[i-1]==' ')
//                count++;
//    }
//        char *s=str1;
//        char *l=str2;
//        char *p=NULL;
//        p=strstr(str1,str2);
//        if(p)
//            printf("%d %d",count,p-s+1);
//        else printf("%d",-1);
//}

img