0_0_20506104_25065.cpp:45:3: note: #pragma message: #include<iostream>
#include<algorithm>
#include<vector>
#include<list>
#include<string>
#include<sstream>
#include<iomanip>
using namespace std;
double s_m=59.0/10;
double s_h=719.0/120;
double m_h=11.0/120;
double tsm=360/s_m;
double tsh=360/s_h;
double tmh=360/m_h;
int main()
{
ios::sync_with_stdio(0);cout<<fixed<<setprecision(3);
double d;
while(cin>>d,d!=-1){
double bmh=d/m_h;
double bsh=d/s_h;
double bsm=d/s_m;
double emh=(360-d)/m_h;
double esh=(360-d)/s_h;
double esm=(360-d)/s_m;
double sum=0;
for(double b3=bmh,e3=emh;e3<=43200.0000001;b3+=tmh,e3+=tmh){
for(double b2=bsm,e2=esm;e2<=43200.0000001;b2+=tsm,e2+=tsm){
if(e3<b2)break;
if(e2<b3) continue;
for(double b1=bsh,e1=esh;e1<=43200.0000001;b1+=tsh,e1+=tsh){
if(b1>e2||b1>e3) break;
if(b2>e1||b3>e1) continue;
double big=max(b1,max(b2,b3));
double small=min(e1,min(e2,e3));
sum+=(small-big);
}
}
}
cout<<sum*100/43200<<endl;
}
return 0;
}
}")
^
GCC4.9.2/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib\libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x25): undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status
|