关于PAT报错:warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result

版权声明:关中大侠Lv轻侯 https://blog.csdn.net/weixin_44312186/article/details/86618110

1、PAT真的严(e)格(xin)!!!  

2、一般是你的输入输出格式问题!严格检查自己的输入输出是否符合题目要求,不要有多余的输入输出(画蛇添足→_→|||)。

3、附上大佬的解决方案:

4、其实如果程序能通过,warning也可以不用管。 

猜你喜欢

转载自blog.csdn.net/weixin_44312186/article/details/86618110