C语言韩信点兵 兄弟们帮帮我吧

我做出来是这样的 为什么无论输入什么数都是101false

img

img

main()后边没{}
if();分号去掉
print("%d\n",i);之后直接return 0;
main的最后一行也要有return 0;