在用循环法求等差数列和,的时候报错,不知道哪里出错了代码报错内容为:mian'must return'int'
把 void main () 改成 int main ()最好在最下面的大括号上面加一个 return 0 ;
12行后面最后加一个return 0
函数类型改成int main().