警告int* but int-Wformat

看看哪里出错了,刚学😭。warning:format specifies type 'int*'but the argument has type'int' [-Wformat]

img

img

代码保存一下重新编译运行

你上面的代码没有问题,你报错的时候,scanf 最后不是&a 和 &b,而是a 和 b
估计你代码没有保存