VS2017 程序debug时发现错误,怎么弄

在Words\文件中读取,打印第一行,输入第二行,然后比对。vs2017提示在注释下面的printf()中,“将一个无效参数传递给了将无效参数视为严重错误的函数”,但是找不出来


void examin() 
{
    int cou;
    for(cou=0;;cou++)
    {
        char wd[21] = "Words\\";
        char m[102],inp[51],se[101],count[11];
        sprintf_s(count, 11, "%d", cou);
        strcat_s(wd,11,count);
                
        FILE *fp;
        fopen_s(&fp,wd,"r+");
        
        fgets(m, 100, fp);
        /*Examination*/
        printf("\nE>>>%sC>>>",m);
        scanf_s("%s",inp,50);
        fgets(se,100,fp);
        if(strcmp(inp,se) == 0)
        {
            printf("Right!\n");
        }
        else
        {
            printf("It\'s wrong, the answer is\"%s\"",se);
        }
        fclose(fp);
    }
    return;
}