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

Common Board

what's wrong with this...?
Posted by gigliolily 27 Oct 2011 19:11
problem set 1000 I don't know what's the matter,i learn c and it could run in vc6.0,why is it wrong ?
#include<stdio.h>
void main()
{int a,b;
scanf("%d%d",&a,&b);
printf("a+b=%d",a+b);
}
Re: what's wrong with this...?
Posted by Vladimir Yakovlev (USU) 27 Oct 2011 19:20
Your program outputs a+b=6 instead of just 6
Re: what's wrong with this...?
Posted by gigliolily 29 Oct 2011 15:13
thank you,I don't think it will matter at first,now I know it's so important.