/ Vijos /

记录详情

Compile Error

/in/foo.c:1:1: error: unknown type name 'Var'
 Var
 ^~~
/in/foo.c:2:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  n,m,i,l,pos:longint;
             ^
/in/foo.c:3:2: warning: data definition has no type or storage class
  a,b,c:array[1..100001]of longint;
  ^
/in/foo.c:3:2: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
/in/foo.c:3:4: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
  a,b,c:array[1..100001]of longint;
    ^
/in/foo.c:3:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  a,b,c:array[1..100001]of longint;
       ^
/in/foo.c:3:14: error: too many decimal points in number
  a,b,c:array[1..100001]of longint;
              ^~~~~~~~~
/in/foo.c:4:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  s:array[1..100001]of string;
   ^
/in/foo.c:4:10: error: too many decimal points in number
  s:array[1..100001]of string;
          ^~~~~~~~~
/in/foo.c:5:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  ans:string;
     ^
/in/foo.c:6:1: error: unknown type name 'Begin'
 Begin
 ^~~~~
/in/foo.c:7:2: warning: parameter names (without types) in function declaration
  readln(n,m);
  ^~~~~~
/in/foo.c:8:2: error: expected identifier or '(' before 'for'
  for i:=1 to n do
  ^~~
/in/foo.c:11:4: warning: data definition has no type or storage class
    readln;
    ^~~~~~
/in/foo.c:11:4: warning: type defaults to 'int' in declaration of 'readln' [-Wimplicit-int]
/in/foo.c:11:4: error: 'readln' redeclared as different kind of symbol
/in/foo.c:7:2: note: previous declaration of 'readln' was here
  readln(n,m);
  ^~~~~~
/in/foo.c:12:3: warning: data definition has no type or storage class
   end;
   ^~~
/in/foo.c:12:3: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:13:2: error: expected identifier or '(' before 'for'
  for i:=1 to m do
  ^~~
/in/foo.c:16:4: warning: data definition has no type or storage class
    readln;
    ^~~~~~
/in/foo.c:16:4: warning: type defaults to 'int' in declaration of 'readln' [-Wimplicit-int]
/in/foo.c:16:4: error: 'readln' redeclared as different kind of symbol
/in/foo.c:7:2: note: previous declaration of 'readln' was here
  readln(n,m);
  ^~~~~~
/in/foo.c:17:3: warning: data definition has no type or storage class
   end;
   ^~~
/in/foo.c:17:3: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:19:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  pos:=1;
     ^
/in/foo.c:20:2: error: expected identifier or '(' before 'for'
  for i:=1 to m do
  ^~~
/in/foo.c:25:6: error: expected identifier or '(' before 'while'
      while(pos<=0) do pos:=pos+n;
      ^~~~~
/in/foo.c:26:6: error: expected identifier or '(' before 'continue'
      continue;
      ^~~~~~~~
/in/foo.c:27:5: warning: data definition has no type or storage class
     end;
     ^~~
/in/foo.c:27:5: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:28:4: error: expected identifier or '(' before 'if'
    if ((a[pos]=1)and(b[i]=0))or((a[pos]=0)and(b[i]=1)) then
    ^~
/in/foo.c:31:6: error: expected identifier or '(' before 'while'
      while(pos>n) do pos:=pos-n;
      ^~~~~
/in/foo.c:32:6: error: expected identifier or '(' before 'continue'
      continue;
      ^~~~~~~~
/in/foo.c:33:5: warning: data definition has no type or storage class
     end;
     ^~~
/in/foo.c:33:5: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:34:3: warning: data definition has no type or storage class
   end;
   ^~~
/in/foo.c:34:3: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:35:9: error: unknown type name 's'
  delete(s[pos],1,1);
         ^
/in/foo.c:35:16: error: expected declaration specifiers or '...' before numeric constant
  delete(s[pos],1,1);
                ^
/in/foo.c:35:18: error: expected declaration specifiers or '...' before numeric constant
  delete(s[pos],1,1);
                  ^
/in/foo.c:36:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  ans:=s[pos];
     ^
/in/foo.c:37:2: warning: data definition has no type or storage class
  writeln(ans);
  ^~~~~~~
/in/foo.c:37:2: warning: type defaults to 'int' in declaration of 'writeln' [-Wimplicit-int]
/in/foo.c:37:2: warning: parameter names (without types) in function declaration
/in/foo.c:38:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
 End.
    ^

信息

递交者
类型
递交
题目
P2003 玩具谜题
语言
C
递交时间
2017-11-02 13:15:04
评测时间
2017-11-02 13:15:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes