/ Vijos /

记录详情

Compile Error

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

信息

递交者
类型
递交
题目
P1907 飞扬的小鸟
语言
C++
递交时间
2021-08-23 17:15:18
评测时间
2021-08-23 17:15:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes