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

你自己看看编译错

Posted by hawk at 2004-03-29 23:31:55
In Reply To:受不了了,这程序在visucal c++上可以调适,但在这上面怎么也过不了,请牛人指点一下!!不胜感谢!! Posted by:C0400101014 at 2004-03-29 22:32:57
你在vc是当c++编译的吧
在我这里用c编译会有错的,好像c不支持这种类型转换(int不能当作一个函数一样来调用)
> 1005
> 
> 
> 
> 
> #include<stdio.h>
> 
> void main(){
>       double  x,y;
>       int i=1,n;
>       scanf("%d",&n);
>       for(;i<=n;i++){
>              scanf("%lf     %lf",&x,&y);
>              printf("Property %d: This property will begin eroding in year  %d.\n",i,1+int(3.1415926*(x*x+y*y)/2/50));
>        }
> }      

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