/ Vijos /

记录详情

Compile Error

/in/foo.c:1:1: error: stray '##' in program
    1 | ###block code
      | ^~
/in/foo.c:1:3: error: stray '#' in program
    1 | ###block code
      |   ^
/in/foo.c:1:4: error: unknown type name 'block'
    1 | ###block code
      |    ^~~~~
/in/foo.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'program'
    2 | program P1906;
      | ^~~~~~~
/in/foo.c:2:1: error: unknown type name 'program'
/in/foo.c:3:7: warning: type defaults to 'int' in declaration of 'maxn' [-Wimplicit-int]
    3 | const maxn=400001;
      |       ^~~~
/in/foo.c:4:1: error: unknown type name 'var'
    4 | var ans,max,sum2,sum:int64;
      | ^~~
/in/foo.c:4:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    4 | var ans,max,sum2,sum:int64;
      |                     ^
/in/foo.c:5:1: warning: data definition has no type or storage class
    5 | i,j,n,now,k,num1,num2:longint;
      | ^
/in/foo.c:5:1: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
/in/foo.c:5:3: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
    5 | i,j,n,now,k,num1,num2:longint;
      |   ^
/in/foo.c:5:5: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
    5 | i,j,n,now,k,num1,num2:longint;
      |     ^
/in/foo.c:5:7: warning: type defaults to 'int' in declaration of 'now' [-Wimplicit-int]
    5 | i,j,n,now,k,num1,num2:longint;
      |       ^~~
/in/foo.c:5:11: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int]
    5 | i,j,n,now,k,num1,num2:longint;
      |           ^
/in/foo.c:5:13: warning: type defaults to 'int' in declaration of 'num1' [-Wimplicit-int]
    5 | i,j,n,now,k,num1,num2:longint;
      |             ^~~~
/in/foo.c:5:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    5 | i,j,n,now,k,num1,num2:longint;
      |                      ^
/in/foo.c:6:1: warning: data definition has no type or storage class
    6 | s,w:array[1..200000] of longint;
      | ^
/in/foo.c:6:1: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
/in/foo.c:6:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    6 | s,w:array[1..200000] of longint;
      |    ^
/in/foo.c:6:11: error: too many decimal points in number
    6 | s,w:array[1..200000] of longint;
      |           ^~~~~~~~~
/in/foo.c:7:1: warning: data definition has no type or storage class
    7 | first,last:array[1..maxn] of longint;
      | ^~~~~
/in/foo.c:7:1: warning: type defaults to 'int' in declaration of 'first' [-Wimplicit-int]
/in/foo.c:7:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    7 | first,last:array[1..maxn] of longint;
      |           ^
/in/foo.c:7:18: error: too many decimal points in number
    7 | first,last:array[1..maxn] of longint;
      |                  ^~~~~~~
/in/foo.c:8:1: warning: data definition has no type or storage class
    8 | data,new:array[1..maxn,1..2] of longint;
      | ^~~~
/in/foo.c:8:1: warning: type defaults to 'int' in declaration of 'data' [-Wimplicit-int]
/in/foo.c:8:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    8 | data,new:array[1..maxn,1..2] of longint;
      |         ^
/in/foo.c:8:16: error: too many decimal points in number
    8 | data,new:array[1..maxn,1..2] of longint;
      |                ^~~~~~~
/in/foo.c:8:24: error: too many decimal points in number
    8 | data,new:array[1..maxn,1..2] of longint;
      |                        ^~~~
/in/foo.c:9:1: error: unknown type name 'procedure'
    9 | procedure star;//构造计数排序优化的前向星。自己百度百科不谢。
      | ^~~~~~~~~
/in/foo.c:11:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
   11 | for i:=1 to n-1 do
      | ^~~
/in/foo.c:13:32: error: expected declaration specifiers or '...' before 's'
   13 | read(data[i,1],data[i,2]); inc(s[data[i,1]]);
      |                                ^
/in/foo.c:14:11: error: expected ']' before ',' token
   14 | data[n-1+i,1]:=data[i,2]; data[n-1+i,2]:=data[i,1]; inc(s[data[i,2]]);
      |           ^
      |           ]
/in/foo.c:14:37: error: expected ']' before ',' token
   14 | data[n-1+i,1]:=data[i,2]; data[n-1+i,2]:=data[i,1]; inc(s[data[i,2]]);
      |                                     ^
      |                                     ]
/in/foo.c:14:57: error: expected declaration specifiers or '...' before 's'
   14 | data[n-1+i,1]:=data[i,2]; data[n-1+i,2]:=data[i,1]; inc(s[data[i,2]]);
      |                                                         ^
/in/foo.c:15:1: warning: data definition has no type or storage class
   15 | end;
      | ^~~
/in/foo.c:15:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:16:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   16 | first[1]:=1;
      |         ^
/in/foo.c:17:1: error: expected identifier or '(' before 'for'
   17 | for i:=2 to n do begin first[i]:=first[i-1]+s[i-1]; last[i]:=first[i]-1; end;
      | ^~~
/in/foo.c:17:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   17 | for i:=2 to n do begin first[i]:=first[i-1]+s[i-1]; last[i]:=first[i]-1; end;
      |                                                            ^
/in/foo.c:17:74: warning: data definition has no type or storage class
   17 | for i:=2 to n do begin first[i]:=first[i-1]+s[i-1]; last[i]:=first[i]-1; end;
      |                                                                          ^~~
/in/foo.c:17:74: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:18:1: error: expected identifier or '(' before 'for'
   18 | for i:=1 to (n-1) shl 1 do
      | ^~~
/in/foo.c:20:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   20 | inc(last[data[i,1]]); now:=last[data[i,1]]; new[now,1]:=data[i,1]; new[now,2]:=data[i,2];
      |                          ^
/in/foo.c:20:52: error: expected ']' before ',' token
   20 | inc(last[data[i,1]]); now:=last[data[i,1]]; new[now,1]:=data[i,1]; new[now,2]:=data[i,2];
      |                                                    ^
      |                                                    ]
/in/foo.c:20:75: error: expected ']' before ',' token
   20 | inc(last[data[i,1]]); now:=last[data[i,1]]; new[now,1]:=data[i,1]; new[now,2]:=data[i,2];
      |                                                                           ^
      |                                                                           ]
/in/foo.c:21:1: warning: data definition has no type or storage class
   21 | end;
      | ^~~
/in/foo.c:21:1: 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
   23 | end;
      | ^~~
/in/foo.c:23:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:24:1: error: unknown type name 'begin'
   24 | begin //main
      | ^~~~~
/in/foo.c:25:15: error: expected ')' before 'sizeof'
   25 | fillchar(data,sizeof(data),0); ans:=0; max:=0; fillchar(last,sizeof(last),0);
      |               ^~~~~~
      |               )
/in/foo.c:25:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   25 | fillchar(data,sizeof(data),0); ans:=0; max:=0; fillchar(last,sizeof(last),0);
      |                                   ^
/in/foo.c:25:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   25 | fillchar(data,sizeof(data),0); ans:=0; max:=0; fillchar(last,sizeof(last),0);
      |                                           ^
/in/foo.c:25:62: error: expected ')' before 'sizeof'
   25 | fillchar(data,sizeof(data),0); ans:=0; max:=0; fillchar(last,sizeof(last),0);
      |                                                              ^~~~~~
      |                                                              )
/in/foo.c:26:12: error: expected ')' before 'sizeof'
   26 | fillchar(s,sizeof(s),0); fillchar(first,sizeof(first),0);
      |            ^~~~~~
      |            )
/in/foo.c:26:41: error: expected ')' before 'sizeof'
   26 | fillchar(s

信息

递交者
类型
递交
题目
P1906 联合权值
语言
C
递交时间
2025-03-23 15:37:22
评测时间
2025-03-23 15:37:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes