Compile Error

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
Denis
New poster
Posts: 2
Joined: Tue Jul 23, 2002 2:07 am
Location: Russia

Compile Error

Post by Denis »

During last contest this code get compile error:
-- cut --
Here are the compiler error messages:

g++: 00002138_PC.c: No such file or directory
g++: No input files

-- end --
--
Please say why?
Code:
[cpp]
#include <fstream.h>
#include <math.h>
#include <assert.h>

#define ER 0.000001

const long double PI=2*acos(0);

int main()
{
long double a, b, n, m, s, alpha, c;

cout.setf(ios::fixed|ios::showpoint);
cout.precision(2);

while((cin>>a>>b>>s>>n>>m)&&(a+b+s+n+m)>=ER)
{
c=hypot(a*n, b*m);
assert(c>ER);
alpha=180*acos(a*n/c)/PI;
c/=s;
cout<<alpha<<' '<<c<<endl;
}

return 0;
}
[/cpp]
Post Reply

Return to “Other words”