/ Vijos /

记录详情

Compile Error

/in/foo.cc:3:9: error: too many decimal points in number
 f:array[0..100,-2000..2000]of boolean;
         ^~~~~~
/in/foo.cc:3:17: error: too many decimal points in number
 f:array[0..100,-2000..2000]of boolean;
                 ^~~~~~~~~~
/in/foo.cc:4:9: error: too many decimal points in number
 a:array[1..1000]of longint;
         ^~~~~~~
/in/foo.cc:19:37: warning: character constant too long for its type
 if i>0 then writeln(i) else writeln('Happy');
                                     ^~~~~~~
/in/foo.cc:1:1: error: 'Program' does not name a type
 Program Vijos;
 ^~~~~~~
/in/foo.cc:2:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:4:2: error: found ':' in nested-name-specifier, expected '::'
 a:array[1..1000]of longint;
  ^
/in/foo.cc:4:1: error: 'a' does not name a type
 a:array[1..1000]of longint;
 ^
/in/foo.cc:5:1: error: 'b' does not name a type
 b,c,d,e,g,h,i,j,k,l,m,n:longint;
 ^
/in/foo.cc:6:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:8:1: error: expected unqualified-id before 'for'
 for i:=1 to n do read(a[i]);
 ^~~
/in/foo.cc:9:1: error: 'f' does not name a type
 f[0,k]:=true;
 ^
/in/foo.cc:10:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
/in/foo.cc:15:1: error: expected unqualified-id before 'if'
 if j-a[i]>=-m then f[i,j-a[i]]:=true;
 ^~
/in/foo.cc:16:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:17:1: error: expected unqualified-id before 'for'
 for i:=m downto 0 do
 ^~~
/in/foo.cc:19:1: error: expected unqualified-id before 'if'
 if i>0 then writeln(i) else writeln('Happy');
 ^~
/in/foo.cc:20:1: error: 'end' does not name a type
 end.
 ^~~

信息

递交者
类型
自测
题目
P1751 YYB写强化
语言
C++
递交时间
2017-08-26 13:25:20
评测时间
2017-08-26 13:25:20
评测机
分数
0
总耗时
13ms
峰值内存
2.816 MiB