/ Vijos /

记录详情

Compile Error

foo.cc:4:15: error: too many decimal points in number
 f1,f,a:array[-3..1000,-3..1000] of longint;
               ^~~~~~~
foo.cc:4:24: error: too many decimal points in number
 f1,f,a:array[-3..1000,-3..1000] of longint;
                        ^~~~~~~
foo.cc:6:14: warning: multi-character character constant [-Wmultichar]
 assign(input,'1.in');
              ^~~~~~
foo.cc:1:1: error: 'program' does not name a type
 program exam;
 ^~~~~~~
foo.cc:2:1: error: 'var' does not name a type; did you mean 'char'?
 var i,j,m,n,k,l,ans,ans1,x1,x2,q:longint;
 ^~~
 char
foo.cc:3:1: error: 's1' does not name a type
 s1,s2:ansistring;
 ^~
foo.cc:4:1: error: 'f1' does not name a type
 f1,f,a:array[-3..1000,-3..1000] of longint;
 ^~
foo.cc:5:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:7:6: error: expected constructor, destructor, or type conversion before '(' token
 reset(input);
      ^
foo.cc:8:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(s1);
       ^
foo.cc:9:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(m);
       ^
foo.cc:10:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(f,sizeof(f),$7f);
         ^
foo.cc:11:1: error: 'n' does not name a type
 n:=length(s1);
 ^
foo.cc:12:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
foo.cc:15:1: error: expected unqualified-id before 'for'
 for j:=i+1 to n do
 ^~~
foo.cc:17:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:19:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
foo.cc:21:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
foo.cc:27:1: error: expected unqualified-id before 'if'
 if f[k,q]>f[i,j]+1 then
 ^~
foo.cc:29:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:30:1: error: expected unqualified-id before 'for'
 for i:=0 to m-1 do
 ^~~
foo.cc:34:1: error: expected unqualified-id before 'break'
 break;
 ^~~~~
foo.cc:35:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:36:1: error: expected unqualified-id before 'for'
 for i:=m-1 downto 0 do
 ^~~
foo.cc:40:1: error: expected unqualified-id before 'break'
 break;
 ^~~~~
foo.cc:41:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:42:1: error: 'end' does not name a type; did you mean 'enum'?
 end.
 ^~~
 enum
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1455 最小与最大
语言
C++
递交时间
2021-07-21 20:52:49
评测时间
2021-07-21 20:52:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes