/ Vijos /

记录详情

Compile Error

/in/foo.c:1:1: error: unknown type name 'var'
 var
 ^~~
/in/foo.c:2:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 t,c:real;
    ^
/in/foo.c:3:1: warning: data definition has no type or storage class
 n,k,m,l,d:qword;
 ^
/in/foo.c:3:1: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
/in/foo.c:3:3: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int]
 n,k,m,l,d:qword;
   ^
/in/foo.c:3:5: warning: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
 n,k,m,l,d:qword;
     ^
/in/foo.c:3:7: warning: type defaults to 'int' in declaration of 'l' [-Wimplicit-int]
 n,k,m,l,d:qword;
       ^
/in/foo.c:3:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 n,k,m,l,d:qword;
          ^
/in/foo.c:4:1: warning: data definition has no type or storage class
 i,j:longint;
 ^
/in/foo.c:4:1: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
/in/foo.c:4:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 i,j:longint;
    ^
/in/foo.c:5:1: warning: data definition has no type or storage class
 a,b:array[0..100000] of double;
 ^
/in/foo.c:5:1: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
/in/foo.c:5:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 a,b:array[0..100000] of double;
    ^
/in/foo.c:5:11: error: too many decimal points in number
 a,b:array[0..100000] of double;
           ^~~~~~~~~
/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,k,m);
  ^~~~~~
/in/foo.c:8:2: error: expected identifier or '(' before 'for'
  for i:=1 to m do
  ^~~
/in/foo.c:10:2: error: expected identifier or '(' before 'for'
  for i:=1 to m-1 do
  ^~~
/in/foo.c:15:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   b[0]:=b[j-1];
       ^
/in/foo.c:16:5: error: 'j' undeclared here (not in a function)
   a[j-1]:=a[j];
     ^
/in/foo.c:16:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   a[j-1]:=a[j];
         ^
/in/foo.c:17:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   b[j-1]:=b[j];
         ^
/in/foo.c:18:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   a[j]:=a[0];
       ^
/in/foo.c:19:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   b[j]:=b[0];
       ^
/in/foo.c:20:2: warning: data definition has no type or storage class
  end;
  ^~~
/in/foo.c:20:2: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:21:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  t:=0;i:=1;d:=0;l:=1;a[0]:=0;b[0]:=0;
   ^
/in/foo.c:21:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  t:=0;i:=1;d:=0;l:=1;a[0]:=0;b[0]:=0;
        ^
/in/foo.c:21:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  t:=0;i:=1;d:=0;l:=1;a[0]:=0;b[0]:=0;
             ^
/in/foo.c:21:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  t:=0;i:=1;d:=0;l:=1;a[0]:=0;b[0]:=0;
                  ^
/in/foo.c:21:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  t:=0;i:=1;d:=0;l:=1;a[0]:=0;b[0]:=0;
                          ^
/in/foo.c:21:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  t:=0;i:=1;d:=0;l:=1;a[0]:=0;b[0]:=0;
                                  ^
/in/foo.c:22:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
  a[m+1]:=maxlongint*maxlongint;
        ^
/in/foo.c:25:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
   while a[i]+b[i]<=t 
   ^~~~~
/in/foo.c:28:4: error: expected identifier or '(' before 'if'
    if a[i]>=t+1
    ^~
/in/foo.c:32:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
     t:=t+1;
      ^
/in/foo.c:34:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'else'
    else begin
    ^~~~
/in/foo.c:36:5: warning: data definition has no type or storage class
     inc(i);
     ^~~
/in/foo.c:36:5: warning: type defaults to 'int' in declaration of 'inc' [-Wimplicit-int]
/in/foo.c:36:5: warning: parameter names (without types) in function declaration
/in/foo.c:37:4: warning: data definition has no type or storage class
    end;
    ^~~
/in/foo.c:37:4: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:38:2: error: unknown type name 'until'
  until l>=n;
  ^~~~~
/in/foo.c:38:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>=' token
  until l>=n;
         ^~
/in/foo.c:39:11: error: expected ')' before ':' token
  writeln(t:0:2);
           ^
/in/foo.c:40:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
 end.
    ^

信息

递交者
类型
递交
题目
P1401 复制CS
语言
C
递交时间
2018-01-27 22:04:50
评测时间
2018-01-27 22:04:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes