Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:编译错误In Reply To:编译错误 Posted by:z286989429 at 2010-12-21 14:27:21 #include <cmath> #include <iostream> using namespace std; const double Pai = 3.14159265; int main() { int i,N,Year; double X,Y,C,S; while(cin>>N) { for(i=1;i<=N;i++) { cin>>X>>Y; Year = 1; C = 50*Year; S = 0.5*Pai*(X*X+Y*Y); while(C < S) { Year++; C = 50*Year; } cout<<"Property "<<i<<": This property will begin eroding in year "<<Year<<"."<<endl; } cout<<"END OF OUTPUT."<<endl; } return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator