/ Vijos /

记录详情

Compile Error

/in/foo.c:1:1: error: unknown type name 'var'
 var a:CHAR;
 ^~~
/in/foo.c:1:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 var a:CHAR;
      ^
/in/foo.c:2:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 ch:array[1..100000]of char;
   ^
/in/foo.c:2:10: error: too many decimal points in number
 ch:array[1..100000]of char;
          ^~~~~~~~~
/in/foo.c:3:1: warning: data definition has no type or storage class
 r1,r2,ans1,ans2,i,j,b:longint;
 ^~
/in/foo.c:3:1: warning: type defaults to 'int' in declaration of 'r1' [-Wimplicit-int]
/in/foo.c:3:4: warning: type defaults to 'int' in declaration of 'r2' [-Wimplicit-int]
 r1,r2,ans1,ans2,i,j,b:longint;
    ^~
/in/foo.c:3:7: warning: type defaults to 'int' in declaration of 'ans1' [-Wimplicit-int]
 r1,r2,ans1,ans2,i,j,b:longint;
       ^~~~
/in/foo.c:3:12: warning: type defaults to 'int' in declaration of 'ans2' [-Wimplicit-int]
 r1,r2,ans1,ans2,i,j,b:longint;
            ^~~~
/in/foo.c:3:17: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
 r1,r2,ans1,ans2,i,j,b:longint;
                 ^
/in/foo.c:3:19: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
 r1,r2,ans1,ans2,i,j,b:longint;
                   ^
/in/foo.c:3:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 r1,r2,ans1,ans2,i,j,b:longint;
                      ^
/in/foo.c:4:1: error: unknown type name 'begin'
 begin 
 ^~~~~
/in/foo.c:5:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 i:=0;
  ^
/in/foo.c:6:1: error: unknown type name 'repeat'
 repeat 
 ^~~~~~
/in/foo.c:7:1: warning: parameter names (without types) in function declaration
 read(a);
 ^~~~
/in/foo.c:8:1: error: expected identifier or '(' before 'if'
 if (a='w')or (a='L') THEN
 ^~
/in/foo.c:11:4: error: 'I' undeclared here (not in a function)
 ch[I]:=a;
    ^
/in/foo.c:11:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 ch[I]:=a;
      ^
/in/foo.c:12:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:12:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:13:1: error: unknown type name 'until'
 until a='E';
 ^~~~~
/in/foo.c:14:1: error: expected identifier or '(' before 'for'
 for j:=1 to i do 
 ^~~
/in/foo.c:18:1: error: expected identifier or '(' before 'if'
 if abs(r1-r2)>=2 then 
 ^~
/in/foo.c:23:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 r1:=0;
   ^
/in/foo.c:24:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 r2:=0;
   ^
/in/foo.c:25:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:25:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:26:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:26:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:27:12: error: expected ')' before ':'
 writeln(r1,':',r2);
            ^~~
/in/foo.c:28:1: warning: data definition has no type or storage class
 writeln;
 ^~~~~~~
/in/foo.c:28:1: warning: type defaults to 'int' in declaration of 'writeln' [-Wimplicit-int]
/in/foo.c:29:1: error: expected identifier or '(' before 'if'
 if (r1>=21) or (r2>=21)then 
 ^~
/in/foo.c:32:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 r1:=0;
   ^
/in/foo.c:33:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 r2:=0;
   ^
/in/foo.c:34:1: warning: data definition has no type or storage class
 end;
 ^~~
/in/foo.c:34:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:35:12: error: expected ')' before ':'
 writeln(r1,':',r2);
            ^~~
/in/foo.c:36:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
 end.
    ^

信息

递交者
类型
递交
题目
P1217 乒乓球
语言
C
递交时间
2019-04-03 20:40:11
评测时间
2019-04-03 20:40:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes