/ Vijos /

记录详情

Compile Error

/in/foo.cc:1:17: error: too many decimal points in number
 type damn=array[0..256] of longint;
                 ^~~~~~
/in/foo.cc:8:13: error: too many decimal points in number
 a,b,c:array[0..256] of longint;
             ^~~~~~
/in/foo.cc:1:1: error: 'type' does not name a type
 type damn=array[0..256] of longint;
 ^~~~
/in/foo.cc:2:1: error: 'var' does not name a type
 var i,j,n,totalround,aa,bb,cc:longint;
 ^~~
/in/foo.cc:3:1: error: 'feel' does not name a type
 feel,fortune,state,basic:double;
 ^~~~
/in/foo.cc:4:5: error: found ':' in nested-name-specifier, expected '::'
 muti:longint;
     ^
/in/foo.cc:4:1: error: 'muti' does not name a type
 muti:longint;
 ^~~~
/in/foo.cc:5:1: error: 's1' does not name a type
 s1,s2:string;
 ^~
/in/foo.cc:6:1: error: 'poss' does not name a type
 poss:double;
 ^~~~
/in/foo.cc:7:1: error: 'sum' does not name a type
 sum,len,fuckyouasshole:longint;
 ^~~
/in/foo.cc:8:1: error: 'a' does not name a type
 a,b,c:array[0..256] of longint;
 ^
/in/foo.cc:9:1: error: 'procedure' does not name a type
 procedure fuck(var sx:string;var ax:damn);
 ^~~~~~~~~
/in/foo.cc:9:30: error: 'var' does not name a type
 procedure fuck(var sx:string;var ax:damn);
                              ^~~
/in/foo.cc:10:1: error: 'var' does not name a type
 var j,k:longint;
 ^~~
/in/foo.cc:11:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:13:1: error: expected unqualified-id before 'for'
 for k:=1 to length(sx) do begin
 ^~~
/in/foo.cc:15:4: error: expected constructor, destructor, or type conversion before '(' token
 dec(j);
    ^
/in/foo.cc:16:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:17:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:18:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:21:1: error: 'sum' does not name a type
 sum:=0;
 ^~~
/in/foo.cc:22:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(a,sizeof(a),0);
         ^
/in/foo.cc:23:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(b,sizeof(b),0);
         ^
/in/foo.cc:24:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(c,sizeof(c),0);
         ^
/in/foo.cc:25:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(n);
       ^
/in/foo.cc:26:1: error: 'totalround' does not name a type
 totalround:=round(ln(n)/ln(2));
 ^~~~~~~~~~
/in/foo.cc:27:1: error: expected unqualified-id before 'for'
 for i:=1 to totalround do begin
 ^~~
/in/foo.cc:29:1: error: 'poss' does not name a type
 poss:=poss*aa/100*bb/100*cc/100;
 ^~~~
/in/foo.cc:30:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:31:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(poss:0:2);//possibility finished
        ^
/in/foo.cc:32:1: error: expected unqualified-id before 'for'
 for i:=1 to totalround do begin
 ^~~
/in/foo.cc:34:1: error: 'muti' does not name a type
 muti:=trunc(feel*fortune*state*basic/1000000+basic);
 ^~~~
/in/foo.cc:35:1: error: 'sum' does not name a type
 sum:=sum+muti;
 ^~~
/in/foo.cc:36:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:37:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(fuckyouasshole);//wasted data(It's the length)
       ^
/in/foo.cc:38:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(s1);
       ^
/in/foo.cc:39:4: error: expected constructor, destructor, or type conversion before '(' token
 str(sum,s2);
    ^
/in/foo.cc:40:5: error: expected constructor, destructor, or type conversion before '(' token
 fuck(s1,a);
     ^
/in/foo.cc:41:5: error: expected constructor, destructor, or type conversion before '(' token
 fuck(s2,b);
     ^
/in/foo.cc:42:1: error: expected unqualified-id before 'if'
 if length(s1)>=length(s2) then len:=length(s1) else len:=length(s2);
 ^~
/in/foo.cc:43:1: error: expected unqualified-id before 'for'
 for i:=1 to len do begin
 ^~~
/in/foo.cc:45:1: error: expected unqualified-id before 'if'
 if c[i]>=10 then begin
 ^~
/in/foo.cc:47:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(c[i+1]);
    ^
/in/foo.cc:48:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:49:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:50:1: error: expected unqualified-id before 'for'
 for i:=len downto 1 do write(c[i]);
 ^~~
/in/foo.cc:51:1: error: 'writeln' does not name a type
 writeln;
 ^~~~~~~
/in/foo.cc:52:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:53:1: error: 'end' does not name a type
 end.
 ^~~

信息

递交者
类型
递交
题目
P1436 简单的比赛
语言
C++
递交时间
2017-08-06 15:49:28
评测时间
2017-08-06 15:49:28
评测机
分数
0
总耗时
14ms
峰值内存
2.836 MiB