Settings | Sign in | Sign up

There are currently 28 posts.

编译有错误

Floor 1 fengtianru117 11/27/15 8:03
Floor 2 fengtianru117 11/27/15 8:04
不知道为什么只拿了50分
Floor 3 fengtianru117 11/27/15 8:09
#include<stdio.h>
int main()
{
long long n,i,s=0;
scanf("%d",&n);
for(i=0;i<=n;i++)
s+=i;
printf("%d",s);
return 0;
}
Floor 4 fengtianru117 11/27/15 8:09
洪银大神帮我看看
Floor 5 fengtianru117 11/27/15 8:10
~~~
Floor 6 巨大八爪鱼 11/27/15 8:13
是因为最后一行没有输出\n导致扣分了吗?
Floor 7 fengtianru117 11/27/15 8:15
我试试看
Floor 8 巨大八爪鱼 11/27/15 8:15
题目要求的应该是输出一行,末尾包含回车符。
Floor 9 fengtianru117 11/27/15 8:16
还是不行
Floor 10 巨大八爪鱼 11/27/15 8:17
回復:9樓
发下题目要求

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
©2010-2025 Purasbar Ver3.0 [Mobile] [Desktop]
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported license.