/in/foo.cc:1:1: error: stray '##' in program
###pascal code
^~
/in/foo.cc:1:3: error: stray '#' in program
###pascal code
^
/in/foo.cc:5:21: error: too many decimal points in number
var a,dp:array[-1..10000,0..1000] of longint;
^~~~~~~~
/in/foo.cc:5:30: error: too many decimal points in number
var a,dp:array[-1..10000,0..1000] of longint;
^~~~~~~
/in/foo.cc:6:19: error: too many decimal points in number
x,y:array[0..10000] of longint;
^~~~~~~~
/in/foo.cc:9:20: error: too many decimal points in number
have:array[1..10000] of boolean;
^~~~~~~~
/in/foo.cc:1:4: error: 'pascal' does not name a type
###pascal code
^~~~~~
/in/foo.cc:3:5: error: 'uses' does not name a type
uses math;
^~~~
/in/foo.cc:4:11: error: 'maxn' does not name a type
const maxn=100000001;
^~~~
/in/foo.cc:5:5: error: 'var' does not name a type
var a,dp:array[-1..10000,0..1000] of longint;
^~~
/in/foo.cc:6:9: error: 'x' does not name a type
x,y:array[0..10000] of longint;
^
/in/foo.cc:7:9: error: 'k' does not name a type
k,m,p,l,h,i,j,ans,n,v:longint;
^
/in/foo.cc:8:11: error: found ':' in nested-name-specifier, expected '::'
ok:boolean;
^
/in/foo.cc:8:9: error: 'ok' does not name a type
ok:boolean;
^~
/in/foo.cc:9:13: error: found ':' in nested-name-specifier, expected '::'
have:array[1..10000] of boolean;
^
/in/foo.cc:9:9: error: 'have' does not name a type
have:array[1..10000] of boolean;
^~~~
/in/foo.cc:10:5: error: 'begin' does not name a type
begin //main
^~~~~
/in/foo.cc:11:26: error: expected constructor, destructor, or type conversion before '(' token
read(n,m,k); fillchar(a,sizeof(a),0); fillchar(dp,sizeof(dp),0); ans:=maxn;
^
/in/foo.cc:11:51: error: expected constructor, destructor, or type conversion before '(' token
read(n,m,k); fillchar(a,sizeof(a),0); fillchar(dp,sizeof(dp),0); ans:=maxn;
^
/in/foo.cc:11:70: error: 'ans' does not name a type
read(n,m,k); fillchar(a,sizeof(a),0); fillchar(dp,sizeof(dp),0); ans:=maxn;
^~~
/in/foo.cc:12:13: error: expected constructor, destructor, or type conversion before '(' token
fillchar(have,sizeof(have),false);
^
/in/foo.cc:13:5: error: expected unqualified-id before 'for'
for i:=0 to n-1 do read(x[i],y[i]);
^~~
/in/foo.cc:14:5: error: expected unqualified-id before 'for'
for i:=1 to k do
^~~
/in/foo.cc:16:19: error: 'have' does not name a type
read(p,l,h); have[p]:=true;
^~~~
/in/foo.cc:17:6: error: expected unqualified-id before 'for'
for j:=0 to l do a[p,j]:=maxn;
^~~
/in/foo.cc:18:6: error: expected unqualified-id before 'for'
for j:=h to m do a[p,j]:=maxn;
^~~
/in/foo.cc:19:5: error: 'end' does not name a type
end;
^~~
/in/foo.cc:20:5: error: expected unqualified-id before 'for'
for i:=0 to 1000 do a[-1,i]:=maxn;
^~~
/in/foo.cc:21:5: error: expected unqualified-id before 'for'
for i:=-1 to 10000 do a[i,0]:=maxn;
^~~
/in/foo.cc:23:5: error: expected unqualified-id before 'for'
for i:=-1 to 10000 do
^~~
/in/foo.cc:27:5: error: expected unqualified-id before 'for'
for i:=0 to m do
^~~
/in/foo.cc:31:5: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
/in/foo.cc:34:6: error: expected unqualified-id before 'for'
for j:=x[i-1]+1 to m do //向上飞的完全背包
^~~
/in/foo.cc:37:8: error: expected unqualified-id before 'if'
if dp[i,j]>maxn then
^~
/in/foo.cc:39:7: error: 'end' does not name a type
end;
^~~
/in/foo.cc:41:6: error: expected unqualified-id before 'for'
for j:=m downto m-x[i-1] do //顶部特判
^~~
/in/foo.cc:45:6: error: expected unqualified-id before 'for'
for j:=m-y[i-1] downto 1 do //向下掉
^~~
/in/foo.cc:49:6: error: expected unqualified-id before 'for'
for j:=1 to m do //有水管的地方要改成无限大哦~
^~~
/in/foo.cc:53:6: error: expected unqualified-id before 'for'
for j:=m downto 1 do
^~~
/in/foo.cc:57:6: error: expected unqualified-id before 'if'
if ok=false then begin v:=i; break; end; //已经无解了
^~
/in/foo.cc:57:35: error: expected unqualified-id before 'break'
if ok=false then begin v:=i; break; end; //已经无解了
^~~~~
/in/foo.cc:57:42: error: 'end' does not name a type
if ok=false then begin v:=i; break; end; //已经无解了
^~~
/in/foo.cc:58:5: error: 'end' does not name a type
end;
^~~
/in/foo.cc:60:5: error: expected unqualified-id before 'if'
if ok=false then //无解的答案输出
^~
/in/foo.cc:62:20: error: 'ans' does not name a type
writeln('0'); ans:=0;
^~~
/in/foo.cc:63:6: error: expected unqualified-id before 'for'
for i:=1 to v-1 do
^~~
/in/foo.cc:67:13: error: expected constructor, destructor, or type conversion before '(' token
writeln(ans);
^
/in/foo.cc:68:6: error: 'exit' does not name a type
exit;
^~~~
/in/foo.cc:69:5: error: 'end' does not name a type
end;
^~~
/in/foo.cc:71:5: error: expected unqualified-id before 'for'
for i:=m downto 1 do //计算有解时候的答案
^~~
/in/foo.cc:75:5: error: 'end' does not name a type
end;
^~~
/in/foo.cc:77:12: error: expected constructor, destructor, or type conversion before '(' token
writeln('1'); writeln(ans); //有解
^
/in/foo.cc:77:26: error: expected constructor, destructor, or type conversion before '(' token
writeln('1'); writeln(ans); //有解
^
/in/foo.cc:78:5: error: 'end' does not name a type
end.
^~~