Presentation Error ??

Write here if you have problems with your C source code

Moderator: Board moderators

Post Reply
Md. Aftabuddin
New poster
Posts: 3
Joined: Sun Jun 26, 2005 2:24 pm

Presentation Error ??

Post by Md. Aftabuddin » Wed Jun 29, 2005 9:31 am

I received the following when I submitted a solution
Dear aftab:

Your C program has solved Ok the problem nnn (xxx xxx xxx xx)
in 0.000 seconds with low memory spent.
Congratulations!

Warning: Your program would get a Presentation Error in a true contest.
The 24-hours judge interpretes it as an "Accepted" problem.

What is ment by presentation Error ?
How to over come it ?

misof
A great helper
Posts: 430
Joined: Wed Jun 09, 2004 1:31 pm

Post by misof » Wed Jun 29, 2005 9:53 am

Presentation error means: The data in your output is correct, but it is not formatted in the proper way. Check the problem statement. (Missing/excessive blank lines and unnecessary spaces are likely to have caused this message.)

rahul007
New poster
Posts: 1
Joined: Sun Feb 07, 2016 8:49 am

Re: Presentation Error ??

Post by rahul007 » Sun Feb 07, 2016 9:05 am

#include <stdio.h>

int main()

{
float s1,s2,y1,y2,y3;
int x1,x2,x3;

scanf("%d %d %d %d %d %d",&x1,&y1,&x2,&y2,&x3,&y3);

s1=(y2-y1)/(x2-x1);
s2=(y3-y2)/(x3-x2);

if(s1==s2)
{
printf("yes");
}
else
{
printf("no");
}
return 0;
}
I DON't understand what is the presentation error in this code??

User avatar
Zyaad Jaunnoo
Experienced poster
Posts: 120
Joined: Tue Apr 16, 2002 10:07 am

Re: Presentation Error ??

Post by Zyaad Jaunnoo » Mon Feb 08, 2016 9:40 pm

Rahul007, your solution is for what problem number on UVA Online Judge?

Post Reply

Return to “C”

Who is online

Users browsing this forum: No registered users and 1 guest