scanf("%s", ans.c_str());
这句语句为啥报错
报错内容是:
1.'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
2.警告 C4477 “scanf”: 格式字符串“%s”需要类型“char *”的参数,但可变参数 1 拥有了类型“const _Elem *”
3.返回值被忽略: “scanf”。
求助各位大佬!!!