0
Follow
0
View

How to solve the problem of #%d#?

czmike 注册会员
2023-02-27 08:18

Replace the scanf() function with the scanf_s() function. https://baike.baidu.com/item/scanf_s/443572?fr=aladdin

kdfashioninc 注册会员
2023-02-27 08:18
  • Your file name suffix is cpp, which means c++. scanf To get you to the more secure scanf_s
  • you can change the file name to a file ending in.c, i.e., c file, which uses scanf without this prompt.
dengjiaqing2012 注册会员
2023-02-27 08:18

is to replace scanf function with scanf_s function. The extra parameter is to specify the length of the buffer. Otherwise, there is a risk of buffer overflow and become an attack vulnerability

About the Author

Question Info

Publish Time
2023-02-27 08:18
Update Time
2023-02-27 08:18

Related Question

没有类型为Zero[DenseVector[Double]] [duplicate]的隐式参数

How to set OnClick listener for Tab in TabBar?

PyTorch: CUDA不可用

在Flutter - iOs M1中Firebase cloud_firestore版本问题

Pyhton - GTK汉堡菜单-菜单项禁用

如何获取firebase firestore文档id

Navigator.share()不共享Opera Mobile上的文件

windows系统下dev c++能否添加crypto,如何添加

Mathematica求解微分方程

tomcat启动一半停止无报错信息