1001

来源:互联网 发布:b超单数据怎么看 编辑:程序博客网 时间:2024/04/26 07:27
#include <stdio.h>
int main()
{
int a,b,s;

while (scanf("%d%d",&a,&b)!=EOF)
{s=a+b;
printf("%d\n",s);}


return 0;

}

这是前面杭电第一题的最最最简单的问题。可是系统提示一个我从未看过的东西:Non-zero Exit Code,后来看到意思:Your program exited returning a non-zero value to the shell. For languages such as C, this probably means you forgot to add "return 0" at the end of the program. For interpreted languages NZEC will usually mean that your program either crashed or raised an uncaught exception.。之前我们老师没怎么说return1和0的效果,自己用起来也是一样的结果。

0 0
原创粉丝点击