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

where the wrong is? 1000
Posted by cityhunter 13 Apr 2002 18:50
my source is :
#include<iostream.h>
void main()
{int a,b;
cin>>a>>b;
cout<<a+b<<endl;}
Re: where the wrong is? 1000
Posted by Ivan Kazmenko (SPB SU FF) 14 Apr 2002 00:39
> {int a,b;
AFAIK these should be longs.
Re: where the wrong is? 1000
Posted by Ivan Kazmenko (SPB SU FF) 15 Apr 2002 02:56
On some systems you should also write "int main {... return(0);}" to
get no Runtime Error when the program finishes running.
In some tasks, e.g 1022, you should output NO eoln at the end of
output.