/ Vijos /

记录详情

Compile Error

/in/foo.c:1:1: error: unknown type name 'var'
 var n,i,a,s:longint;
 ^~~
/in/foo.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 var n,i,a,s:longint;
            ^
/in/foo.c:3:1: error: stray '\343' in program
    b,c:Array [1..1000] of longint;
 ^
/in/foo.c:3:2: error: stray '\200' in program
    b,c:Array [1..1000] of longint;
  ^
/in/foo.c:3:3: error: stray '\200' in program
    b,c:Array [1..1000] of longint;
   ^
/in/foo.c:3:4: error: stray '\343' in program
    b,c:Array [1..1000] of longint;
    ^
/in/foo.c:3:5: error: stray '\200' in program
    b,c:Array [1..1000] of longint;
     ^
/in/foo.c:3:6: error: stray '\200' in program
    b,c:Array [1..1000] of longint;
      ^
/in/foo.c:3:8: warning: data definition has no type or storage class
    b,c:Array [1..1000] of longint;
        ^
/in/foo.c:3:8: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
/in/foo.c:3:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    b,c:Array [1..1000] of longint;
           ^
/in/foo.c:3:19: error: too many decimal points in number
    b,c:Array [1..1000] of longint;
                   ^~~~~~~
/in/foo.c:5:1: error: unknown type name 'begin'
 begin
 ^~~~~
/in/foo.c:7:1: warning: parameter names (without types) in function declaration
 readln(n);
 ^~~~~~
/in/foo.c:9:1: error: expected identifier or '(' before 'for'
 for i:=1 to n do
 ^~~
/in/foo.c:11:1: error: stray '\343' in program
   begin
 ^
/in/foo.c:11:2: error: stray '\200' in program
   begin
  ^
/in/foo.c:11:3: error: stray '\200' in program
   begin
   ^
/in/foo.c:11:4: error: stray '\343' in program
   begin
    ^
/in/foo.c:11:5: error: stray '\200' in program
   begin
     ^
/in/foo.c:11:6: error: stray '\200' in program
   begin
      ^
/in/foo.c:13:1: error: stray '\343' in program
    read(a);
 ^
/in/foo.c:13:2: error: stray '\200' in program
    read(a);
  ^
/in/foo.c:13:3: error: stray '\200' in program
    read(a);
   ^
/in/foo.c:13:4: error: stray '\343' in program
    read(a);
    ^
/in/foo.c:13:5: error: stray '\200' in program
    read(a);
     ^
/in/foo.c:13:6: error: stray '\200' in program
    read(a);
      ^
/in/foo.c:15:1: error: stray '\343' in program
    b[a]:=1;
 ^
/in/foo.c:15:2: error: stray '\200' in program
    b[a]:=1;
  ^
/in/foo.c:15:3: error: stray '\200' in program
    b[a]:=1;
   ^
/in/foo.c:15:4: error: stray '\343' in program
    b[a]:=1;
    ^
/in/foo.c:15:5: error: stray '\200' in program
    b[a]:=1;
     ^
/in/foo.c:15:6: error: stray '\200' in program
    b[a]:=1;
      ^
/in/foo.c:15:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    b[a]:=1;
            ^
/in/foo.c:17:1: error: stray '\343' in program
   end;
 ^
/in/foo.c:17:2: error: stray '\200' in program
   end;
  ^
/in/foo.c:17:3: error: stray '\200' in program
   end;
   ^
/in/foo.c:17:4: error: stray '\343' in program
   end;
    ^
/in/foo.c:17:5: error: stray '\200' in program
   end;
     ^
/in/foo.c:17:6: error: stray '\200' in program
   end;
      ^
/in/foo.c:17:7: warning: data definition has no type or storage class
   end;
       ^~~
/in/foo.c:17:7: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:19:1: error: expected identifier or '(' before 'for'
 for i:=1 to 1000 do
 ^~~
/in/foo.c:21:1: error: stray '\343' in program
   if b[i]=1 then begin inc(s);c:=i; end;
 ^
/in/foo.c:21:2: error: stray '\200' in program
   if b[i]=1 then begin inc(s);c:=i; end;
  ^
/in/foo.c:21:3: error: stray '\200' in program
   if b[i]=1 then begin inc(s);c:=i; end;
   ^
/in/foo.c:21:4: error: stray '\343' in program
   if b[i]=1 then begin inc(s);c:=i; end;
    ^
/in/foo.c:21:5: error: stray '\200' in program
   if b[i]=1 then begin inc(s);c:=i; end;
     ^
/in/foo.c:21:6: error: stray '\200' in program
   if b[i]=1 then begin inc(s);c:=i; end;
      ^
/in/foo.c:21:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   if b[i]=1 then begin inc(s);c:=i; end;
                                    ^
/in/foo.c:21:41: warning: data definition has no type or storage class
   if b[i]=1 then begin inc(s);c:=i; end;
                                         ^~~
/in/foo.c:21:41: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:23:1: warning: data definition has no type or storage class
 writeln(s);
 ^~~~~~~
/in/foo.c:23:1: warning: type defaults to 'int' in declaration of 'writeln' [-Wimplicit-int]
/in/foo.c:23:1: warning: parameter names (without types) in function declaration
/in/foo.c:25:1: error: expected identifier or '(' before 'for'
 for i:=1 to s do
 ^~~
/in/foo.c:27:1: error: stray '\343' in program
   write(c[i],' ');
 ^
/in/foo.c:27:2: error: stray '\200' in program
   write(c[i],' ');
  ^
/in/foo.c:27:3: error: stray '\200' in program
   write(c[i],' ');
   ^
/in/foo.c:27:4: error: stray '\343' in program
   write(c[i],' ');
    ^
/in/foo.c:27:5: error: stray '\200' in program
   write(c[i],' ');
     ^
/in/foo.c:27:6: error: stray '\200' in program
   write(c[i],' ');
      ^
/in/foo.c:29:1: warning: data definition has no type or storage class
 writeln;
 ^~~~~~~
/in/foo.c:29:1: warning: type defaults to 'int' in declaration of 'writeln' [-Wimplicit-int]
/in/foo.c:29:1: error: 'writeln' redeclared as different kind of symbol
/in/foo.c:23:1: note: previous declaration of 'writeln' was here
 writeln(s);
 ^~~~~~~
/in/foo.c:31:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
 end.
    ^

信息

递交者
类型
递交
题目
P1564 平方和的狂想
语言
C
递交时间
2018-02-03 14:20:55
评测时间
2018-02-03 14:20:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes