万能的翔王大人
万能的翔王大人
未归档
a.c:5:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wun
全部文章
未归档
C++菜鸡-冲冲冲(1)
PAT(4)
归档
标签
去牛客网
登录
/
注册
a.c:5:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wun
762 浏览
0 回复
2018-04-15
万能的翔王大人
+关注
PTA做题时出现的错误,用if括起来就没有了。
if
(scanf(
"
%d
"
,&a)){};
其实并不是这里有问题,如果你的输出有问题,他就会鸡蛋里挑骨头的先显示这个错误。
举报
收藏
赞
评论加载中...