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

Re:求指导啊,stack around the variable was corrupted,很奇怪的错误诶。。。

Posted by zhangliang1223 at 2013-04-02 14:24:31 on Problem 2663
In Reply To:求指导啊,stack around the variable was corrupted,很奇怪的错误诶。。。 Posted by:johnny0707 at 2013-02-04 14:17:55
当i = maxn时,数组越界了呀,
for (int i = 4; i <= maxn; i+=2)
{
    ans[i] = 4 * ans[i-2] - ans[i-4];
}

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