/ Vijos /

记录详情

Compile Error

foo.cc:9:10: error: too many decimal points in number
    9 | aa:array[0..256]of longint;
      |          ^~~~~~
foo.cc:1:1: error: 'program' does not name a type
    1 | program vijos1436;
      | ^~~~~~~
foo.cc:3:1: error: 'var' does not name a type
    3 | var n,m,a,b,c,d,i,t,l:longint;
      | ^~~
foo.cc:5:1: error: 'ch' does not name a type; did you mean 'char'?
    5 | ch:char;
      | ^~
      | char
foo.cc:7:1: error: 's' does not name a type
    7 | s:double;
      | ^
foo.cc:9:3: error: found ':' in nested-name-specifier, expected '::'
    9 | aa:array[0..256]of longint;
      |   ^
      |   ::
foo.cc:9:1: error: 'aa' does not name a type
    9 | aa:array[0..256]of longint;
      | ^~
foo.cc:11:1: error: 'begin' does not name a type
   11 | begin
      | ^~~~~
foo.cc:15:1: error: 'm' does not name a type
   15 | m:=round(ln(n)/ln(2));
      | ^
foo.cc:17:1: error: 's' does not name a type
   17 | s:=100;
      | ^
foo.cc:19:1: error: expected unqualified-id before 'for'
   19 | for i:=1 to m do
      | ^~~
foo.cc:25:1: error: 's' does not name a type
   25 | s:=s*a/100*b/100*c/100;
      | ^
foo.cc:27:1: error: 'end' does not name a type
   27 | end;
      | ^~~
foo.cc:29:8: error: expected constructor, destructor, or type conversion before '(' token
   29 | writeln(s:0:2);
      |        ^
foo.cc:31:1: error: 't' does not name a type
   31 | t:=0;
      | ^
foo.cc:33:1: error: expected unqualified-id before 'for'
   33 | for i:=1 to m do
      | ^~~
foo.cc:39:7: error: expected constructor, destructor, or type conversion before '(' token
   39 | readln(a,b,c,d);
      |       ^
foo.cc:41:1: error: 's' does not name a type
   41 | s:=s*a/100*b/100*c/100*d+d;
      | ^
foo.cc:43:1: error: 't' does not name a type
   43 | t:=t+trunc(s);
      | ^
foo.cc:45:1: error: 'end' does not name a type
   45 | end;
      | ^~~
foo.cc:47:7: error: expected constructor, destructor, or type conversion before '(' token
   47 | readln(l);
      |       ^
foo.cc:49:1: error: expected unqualified-id before 'for'
   49 | for i:=1 to l do
      | ^~~
foo.cc:55:1: error: 'aa' does not name a type
   55 | aa[i]:=ord(ch)-48;
      | ^~
foo.cc:57:1: error: 'end' does not name a type
   57 | end;
      | ^~~
foo.cc:59:1: error: 'aa' does not name a type
   59 | aa[l]:=aa[l]+t;
      | ^~
foo.cc:61:1: error: expected unqualified-id before 'for'
   61 | for i:=l downto 1 do
      | ^~~
foo.cc:67:1: error: expected unqualified-id before 'for'
   67 | for i:=1 to l do write(aa[i]);
      | ^~~
foo.cc:69:1: error: 'writeln' does not name a type
   69 | writeln;
      | ^~~~~~~
foo.cc:71:1: error: 'end' does not name a type
   71 | end.
      | ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1436 简单的比赛
语言
C++
递交时间
2021-12-16 20:09:11
评测时间
2021-12-16 20:09:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes