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

无法理解的CE

Posted by Hoblovski at 2014-06-27 10:48:42 on Problem 1509
我是P党蒟蒻,这道题写的后缀自动机.

type tnode=record
        max,pre:longint;
        next:array[1..26] of longint;
     end;

最开始写的是
const void:tnode=(max:-1;pre:0;next:(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0));
然后CE 
但是这是能写的,我计算几何题写的const o=(x:0;y:0); 都AC了.

改成
var void:tnode;
.....
void.max:=-1; void.pre:=0; fillchar(void.next,sizeof(void.next),0);
就AC了

求解这是怎么回事

虽然我以前看到过"Cpp用 int a[5]={1,2,3,4,5}; 数组大了会CE" 的说法
难道Pascal也是?...虽然本机是AC的

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