Too much on this online judge system

Post here if you don't find any other place for your post. But please, stay on-topic: algorithms, programming or something related to this web site and its services.

Moderator: Board moderators

Post Reply
randomtea
New poster
Posts: 5
Joined: Sun Apr 01, 2007 3:48 pm

Too much on this online judge system

Post by randomtea » Sun Apr 01, 2007 7:20 pm

codes run well on my local machine will not compile on your system.
i have actually tried several problems but ALL Compile Error!!!!!!!

My code is very simple , and i submit through the web page, not through email. Is there anyone who can explain why theres so many compile error?

tgoulart
New poster
Posts: 42
Joined: Sat Oct 21, 2006 8:37 am
Location: Alegrete, Brazil

Post by tgoulart » Sun Apr 01, 2007 8:03 pm

It depends on the language you are using, but if you don't post your code or give more information about it, no one can help you.

At the Problemset page you can find hints for submitting.
Thiago Sonego Goulart - UFMG/Brazil

Erik
Learning poster
Posts: 67
Joined: Fri Jul 01, 2005 11:29 am
Location: Germany
Contact:

Post by Erik » Sun Apr 01, 2007 8:35 pm

Hello,

I receive emails in reply to every submission. If there was a compile error it tells you the error messages.

Cu, Erik :)

randomtea
New poster
Posts: 5
Joined: Sun Apr 01, 2007 3:48 pm

Post by randomtea » Mon Apr 02, 2007 6:39 am

Erik wrote:Hello,

I receive emails in reply to every submission. If there was a compile error it tells you the error messages.

the system acclaim that fixed undeclared, which would not happen if it successfully included <iomanip.h>

Cu, Erik :)
#include<stdio.h>
#include<math.h>
#include<iomanip.h>
using namespace std;
int main(){
double Ha,Hb,Hc;
int wrong,i=0;
cin>>wrong;
while(i<wrong){
cin>>Ha>>Hb>>Hc;
if(1/Hb+1/Hc<=1/Ha || 1/Ha+1/Hc<=1/Hb || 1/Ha+1/Hb<=1/Hc) {cout<<"These are invalid inputs!"<<endl; i++;}
else cout<<fixed<<setprecision(3)<<sqrt(1/((1/Hb+1/Hc+1/Ha)*(1/Hb+1/Hc-1/Ha)*(1/Ha+1/Hc-1/Hb)*(1/Ha+1/Hb-1/Hc)))<<endl;
}
return 0;
}
Here are the compiler error messages:

05465393_24.c: In function `int main()':
05465393_24.c:12: `fixed' undeclared (first use this function)
05465393_24.c:12: (Each undeclared identifier is reported only once
05465393_24.c:12: for each function it appears in.)

Erik
Learning poster
Posts: 67
Joined: Fri Jul 01, 2005 11:29 am
Location: Germany
Contact:

Post by Erik » Mon Apr 02, 2007 7:55 am


randomtea
New poster
Posts: 5
Joined: Sun Apr 01, 2007 3:48 pm

Post by randomtea » Mon Apr 02, 2007 8:05 am

Erik wrote:Hi,

take a look here: http://online-judge.uva.es/board/viewtopic.php?t=11655

Cu, Erik :)
Thank you very much Erik, my firt AC!!

:D

Post Reply

Return to “Other words”