scanf_s输入字符要添加长度
scanf_s("%s",n,20)
strcmp也有strcmp_s的,不过我看你这里没必要用scanf_s,直接scanf好了,否则printf也要printf_s