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 I have "Wrong answer"???
Posted by Dyakov Roman 10 Oct 2012 17:41
Pascal

var a,b:real;
begin
 readln(a);
 readln(b);
 writeln(a+b);
end.

Edited by author 10.10.2012 17:42
Re: Why I have "Wrong answer"???
Posted by Kamaldinov Dmitry 13 Oct 2012 20:35


Edited by author 13.10.2012 20:39
Re: Why I have "Wrong answer"???
Posted by PROger4everPublic 13 Oct 2012 23:21
I'm not a Pascal programmer... But... Maybe because these digits are on the same line and you should use "read" instead of "readln"...?
Re: Why I have "Wrong answer"???
Posted by Noob 14 Oct 2012 00:53
Yes, read instead of readln, and also longint instead of real