/ Vijos /

记录详情

Compile Error

foo.cc:3:11: error: too many decimal points in number
 a,b:array[0..31,0..31]of longint;
           ^~~~~
foo.cc:3:17: error: too many decimal points in number
 a,b:array[0..31,0..31]of longint;
                 ^~~~~
foo.cc:5:9: error: too many decimal points in number
 c:array[0..31,0..31]of boolean;
         ^~~~~
foo.cc:5:15: error: too many decimal points in number
 c:array[0..31,0..31]of boolean;
               ^~~~~
foo.cc:19:9: warning: character constant too long for its type
 writeln('Error!');
         ^~~~~~~~
foo.cc:1:1: error: 'var' does not name a type; did you mean 'char'?
 var i,j,k1,k2,l1,l2,m,n,d,x,y,p,q,t,min,ans:longint;
 ^~~
 char
foo.cc:3:1: error: 'a' does not name a type
 a,b:array[0..31,0..31]of longint;
 ^
foo.cc:5:2: error: found ':' in nested-name-specifier, expected '::'
 c:array[0..31,0..31]of boolean;
  ^
foo.cc:5:1: error: 'c' does not name a type
 c:array[0..31,0..31]of boolean;
 ^
foo.cc:7:1: error: 'procedure' does not name a type
 procedure chuan(time,hen,zong:longint);
 ^~~~~~~~~
foo.cc:9:1: error: 'var' does not name a type; did you mean 'char'?
 var e,f,min:longint;
 ^~~
 char
foo.cc:11:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:21:6: error: expected constructor, destructor, or type conversion before '(' token
 write(hen,',',zong);
      ^
foo.cc:23:1: error: 'halt' does not name a type
 halt;
 ^~~~
foo.cc:25:1: error: 'end' does not name a type; did you mean 'enum'?
 end
 ^~~
 enum
foo.cc:35:6: error: expected constructor, destructor, or type conversion before '(' token
 write(hen,',',zong);
      ^
foo.cc:37:1: error: 'halt' does not name a type
 halt;
 ^~~~
foo.cc:39:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:41:1: error: 'e' does not name a type
 e:=hen;
 ^
foo.cc:43:1: error: 'f' does not name a type
 f:=zong;
 ^
foo.cc:45:1: error: 'min' does not name a type
 min:=maxlongint;
 ^~~
foo.cc:47:1: error: expected unqualified-id before 'if'
 if c[hen-1,zong] then begin min:=a[hen-1,zong];e:=hen-1;f:=zong;end;
 ^~
foo.cc:47:48: error: 'e' does not name a type
 if c[hen-1,zong] then begin min:=a[hen-1,zong];e:=hen-1;f:=zong;end;
                                                ^
foo.cc:47:57: error: 'f' does not name a type
 if c[hen-1,zong] then begin min:=a[hen-1,zong];e:=hen-1;f:=zong;end;
                                                         ^
foo.cc:47:65: error: 'end' does not name a type; did you mean 'enum'?
 if c[hen-1,zong] then begin min:=a[hen-1,zong];e:=hen-1;f:=zong;end;
                                                                 ^~~
                                                                 enum
foo.cc:49:1: error: expected unqualified-id before 'if'
 if (c[hen,zong-1])and(min>a[hen,zong-1])then
 ^~
foo.cc:55:1: error: 'e' does not name a type
 e:=hen;
 ^
foo.cc:57:1: error: 'f' does not name a type
 f:=zong-1;
 ^
foo.cc:59:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:61:1: error: expected unqualified-id before 'if'
 if (c[hen+1,zong])and(min>a[hen+1,zong])then
 ^~
foo.cc:67:1: error: 'e' does not name a type
 e:=hen+1;
 ^
foo.cc:69:1: error: 'f' does not name a type
 f:=zong;
 ^
foo.cc:71:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:73:1: error: expected unqualified-id before 'if'
 if (c[hen,zong+1])and(min>a[hen,zong+1])then
 ^~
foo.cc:79:1: error: 'e' does not name a type
 e:=hen;
 ^
foo.cc:81:1: error: 'f' does not name a type
 f:=zong+1;
 ^
foo.cc:83:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:85:1: error: 'time' does not name a type
 time:=time-min;
 ^~~~
foo.cc:87:1: error: expected unqualified-id before 'if'
 if time>0 then begin ans:=ans+1;c[e,f]:=false;chuan(time,e,f);end
 ^~
foo.cc:87:33: error: 'c' does not name a type
 if time>0 then begin ans:=ans+1;c[e,f]:=false;chuan(time,e,f);end
                                 ^
foo.cc:87:52: error: expected constructor, destructor, or type conversion before '(' token
 if time>0 then begin ans:=ans+1;c[e,f]:=false;chuan(time,e,f);end
                                                    ^
foo.cc:87:63: error: 'end' does not name a type; did you mean 'enum'?
 if time>0 then begin ans:=ans+1;c[e,f]:=false;chuan(time,e,f);end
                                                               ^~~
                                                               enum
foo.cc:97:6: error: expected constructor, destructor, or type conversion before '(' token
 write(e,',',f);
      ^
foo.cc:99:1: error: 'halt' does not name a type
 halt;
 ^~~~
foo.cc:101:1: error: 'end' does not name a type; did you mean 'enum'?
 end
 ^~~
 enum
foo.cc:109:6: error: expected constructor, destructor, or type conversion before '(' token
 write(e,',',f);
      ^
foo.cc:111:1: error: 'halt' does not name a type
 halt;
 ^~~~
foo.cc:113:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:115:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:117:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:121:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(k1,k2);
       ^
foo.cc:123:1: error: expected unqualified-id before 'for'
 for i:=1 to k1 do
 ^~~
foo.cc:133:1: error: 'c' does not name a type
 c:=true;
 ^
foo.cc:135:1: error: expected unqualified-id before 'if'
 if a=0 then
 ^~
foo.cc:141:1: error: 'y' does not name a type
 y:=j;
 ^
foo.cc:143:1: error: 'c' does not name a type
 c:=false;
 ^
foo.cc:145:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:147:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:149:1: error: 'readln' does not name a type
 readln;
 ^~~~~~
foo.cc:151:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:153:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(l1,l2);
       ^
foo.cc:155:1: error: expected unqualified-id before 'for'
 for i:=1 to l1 do
 ^~~
foo.cc:165:1: error: expected unqualified-id before 'if'
 if b=0 then
 ^~
foo.cc:171:1: error: 'q' does not name a type
 q:=j;
 ^
foo.cc:173:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:175:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:177:1: error: 'readln' does not name a type
 readln;
 ^~~~~~
foo.cc:179:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:181:5: error: expected constructor, destructor, or type conversion before '(' token
 read(d);
     ^
foo.cc:183:1: error: 't' does not name a type
 t:=0;
 ^
foo.cc:185:1: error: 'min' does not name a type
 min:=0;
 ^~~
foo.cc:187:1: error: 'ans' does not name a type
 ans:=1;
 ^~~
foo.cc:189:1: error: expected unqualified-id before 'for'
 for i:=l1 downto p+1 do
 ^~~
foo.cc:195:1: error: expected unqualified-id before 'if'
 if d=0
 ^~
foo.cc:205:1: error: 'end' does not name a type; did you mean 'enum'?
 end
 ^~~
 enum
foo.cc:215:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:217:6: error: expected constructor, destructor, or type conversion before '(' token
 chuan(t,x,y);
      ^
foo.cc:219:1: error: 'end' does not name a type; did you mean 'enum'?
 end.
 ^~~
 enum
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1503 笨笨的纸条传递
语言
C++
递交时间
2021-07-18 21:58:40
评测时间
2021-07-18 21:58:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes