ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1000. A+B Problem

why this is not accepted?
Posted by Md.Toufiqul Islam 3 Dec 2015 01:57
where is the problem
#include<stdio.h>

int main(void)
{
 int a,b,sum;
 printf("a:");
 scanf("%d",a);

 printf("b:");
 scanf("%d",&b);

 sum=a+b;
 printf("Sum=%d",sum);

 return 0;
}

Edited by author 03.12.2015 01:58
Re: why this is not accepted?
Posted by ToadMonster 3 Dec 2015 14:19
http://acm.timus.ru/help.aspx?topic=judge&locale=en

The program must print only the data that is required by the problem statement. The program must not print any prompts (“Enter N:”). The program must not wait for pressing a key at the end of execution.
Re: why this is not accepted?
Posted by ToadMonster 3 Dec 2015 14:21
And. Did you run it locally? Try please.

You should have crash here: scanf("%d",a);
Re: why this is not accepted?
Posted by xolmomin 31 Dec 2016 14:43
scanf("%d",a);



scanf("%d",&a);