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?
Too much on this online judge system
Moderator: Board moderators
#include<stdio.h>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<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.)