/ Vijos / 讨论 / 分享 /

有点郁闷,请牛们看下

p1535的逆序对问题

出错出得我很无奈,能帮忙看下为啥“Illegal qualifier”么?

错误:

Prog30643.pas(16,44) Error: Illegal qualifier

Prog30643.pas(16,50) Error: Illegal qualifier

Prog30643.pas(17,36) Error: Illegal qualifier

Prog30643.pas(18,37) Error: Illegal qualifier

Prog30643.pas(21,16) Error: Incompatible types: got "Array[1..1000000] Of LongInt" expected "LongInt"

Prog30643.pas(29,16) Error: Incompatible type for arg no. 1: Got "Array[1..1000000] Of LongInt", expected "LongInt"

Prog30643.pas(29,22) Error: Illegal expression

Prog30643.pas(32) Fatal: There were 7 errors compiling module, stopping

Fatal: Compilation aborted

程序:

program lyc;

var a,b:array[1..1000000] of longint;

n,i,j,k,l,r,m,x,y:longint;

c:int64;

function T(a,x,y:longint):longint;

begin

c:=0;

if x

0 条评论

目前还没有评论...