求助..!!!

#include

int main()

{

int a,b;

freopen("Sample.in","r",stdin);

freopen("Sample.out","w",stdout);

scanf("%d%d",&a,&b);

printf("%d",a+b);

}

在Dev-C++ ,TC都能通过,为什么在这里不能通过?

7 条评论

  • @ 2016-03-11 07:46:33
    // input code here
    
  • @ 2013-07-11 12:48:18

    后+return 0;

  • @ 2013-07-11 12:47:45

    或者:
    #include <stdio.h>
    using namespace std;
    int main()
    {
    int a,b;
    freopen("Sample.in","r",stdin);
    freopen("Sample.out","w",stdout);
    scanf("%d%d",&a,&b);
    printf("%d",a+b);
    }

  • @ 2013-07-11 12:46:44

    #include <stdio.h>
    int main()
    {
    int a,b;
    scanf("%d%d",&a,&b);
    printf("%d",a+b);
    }

  • @ 2009-05-28 15:04:28

    ...

    是标准输入输出 不是文件

  • @ 2009-05-25 20:45:03

    。。。。。。

    。。。。。。

  • @ 2009-05-25 11:44:35

    re P1000

    你的

    int main()

    没有返回值,要有 return 0;

  • 1

信息

ID
1000
难度
9
分类
(无)
标签
(无)
递交数
73502
已通过
28192
通过率
38%
被复制
201