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

HELP!!!!这是为什么错的呢???????

Posted by yi_chen2 at 2007-05-18 20:11:06 on Problem 1218
#include<iostream>
#include<cmath>
using namespace std;
void main()
{
	int n;
	  cin>>n;
	  cout<<endl;
         int *a=new int[n];
	   for(int i=0;i<n;i++)
                cin>>a[i];
	       cout<<endl;
	   for(i=0;i<n;i++)
	       if(a[i]<=100&&a[i]>=5)
	         cout<<int(sqrt(a[i]))<<endl;
}

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