/ Vijos /

记录详情

Compile Error

foo.cc:2:10: error: too many decimal points in number
 f:array [0..5000] of longint;
          ^~~~~~~
foo.cc:1:1: error: 'var' does not name a type; did you mean 'char'?
 var
 ^~~
 char
foo.cc:3:2: error: found ':' in nested-name-specifier, expected '::'
 s:ansistring;
  ^
foo.cc:3:1: error: 's' does not name a type
 s:ansistring;
 ^
foo.cc:4:1: error: 'l' does not name a type
 l,i:longint;
 ^
foo.cc:5:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:7:1: error: expected unqualified-id before 'while'
 while (s<>'0') do
 ^~~~~
foo.cc:10:1: error: 'l' does not name a type
 l:=length(s); f[0]:=1;
 ^
foo.cc:10:15: error: 'f' does not name a type
 l:=length(s); f[0]:=1;
               ^
foo.cc:11:1: error: 's' does not name a type
 s:=s+'9';
 ^
foo.cc:12:1: error: expected unqualified-id before 'for'
 for i:=0 to l-1 do
 ^~~
foo.cc:15:1: error: expected unqualified-id before 'if'
 if (s[i+1]='1') or ((s[i+1]='2') and (s[i+2]<='6')) then f[i+2]:=f[i+2]+f[i];
 ^~
foo.cc:16:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:17:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(f[l]);
        ^
foo.cc:18:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(s);
       ^
foo.cc:19:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:20:1: error: 'end' does not name a type; did you mean 'enum'?
 end.
 ^~~
 enum
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1342 Alpha编码
语言
C++
递交时间
2021-03-26 22:40:04
评测时间
2021-03-26 22:40:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes