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 sza at 2006-08-27 19:11:19
我的代码中有一段:
for(i=1;i<=(int)pow(10,length)-1;i++){
            sta[cal(i)]++;
        }
用C++可以过,G++就是WA,
改成
for(i=1;i<=getPOW(10,length)-1;i++){
            sta[cal(i)]++;
        }
getPOW(10,length)是自己写的一个计算乘方的代码,就都过了,不知道为什么.

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