Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

急~为什么总是出现PE 应该怎么改 谢谢了

Posted by anle at 2009-04-05 10:16:18 on Problem 1005
#include<iostream>
#include<cmath> 
using namespace std;
#define pi 3.14
int main()
{
 int counter;
 float x,y;
 double square;
 double years;     
 cin>>counter;
 for(int i=0;i<counter;i++)
 {
   cin>>x>>y;
   square=pi*(x*x+y*y);
   years=square/100;   
   cout<<"Property"<<i+1<<":"<<"This property will begin eroding in year" <<(int)++years<<"."<<endl;   
	                                                                   
 } 
   cout<<"END OF OUTPUT."<<endl;
   return 0;
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator