Page 1 of 1
Too much on this online judge system
Posted: Sun Apr 01, 2007 7:20 pm
by randomtea
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?
Posted: Sun Apr 01, 2007 8:03 pm
by tgoulart
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.
Posted: Sun Apr 01, 2007 8:35 pm
by Erik
Hello,
I receive emails in reply to every submission. If there was a compile error it tells you the error messages.
Cu, Erik

Posted: Mon Apr 02, 2007 6:39 am
by randomtea
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.)
Posted: Mon Apr 02, 2007 7:55 am
by Erik
Posted: Mon Apr 02, 2007 8:05 am
by randomtea
Thank you very much Erik, my firt AC!!
