/ Vijos /

记录详情

Compile Error

/in/foo.cc:2:28: error: too many decimal points in number
 num,color,t,tc,tn,tm:array[1..100000]of Int64;
                            ^~~~~~~~~
/in/foo.cc:1:1: error: 'var' does not name a type
 var n,m,i,sum:longint;
 ^~~
/in/foo.cc:2:1: error: 'num' does not name a type
 num,color,t,tc,tn,tm:array[1..100000]of Int64;
 ^~~
/in/foo.cc:4:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:6:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
/in/foo.cc:8:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
/in/foo.cc:10:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(t,sizeof(t),0);
         ^
/in/foo.cc:11:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(tc,sizeof(tc),0);
         ^
/in/foo.cc:12:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(tn,sizeof(tn),0);
         ^
/in/foo.cc:13:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(tm,sizeof(tm),0);
         ^
/in/foo.cc:14:1: error: 'sum' does not name a type
 sum:=0;
 ^~~
/in/foo.cc:15:1: error: 'i' does not name a type
 i:=1;
 ^
/in/foo.cc:16:1: error: expected unqualified-id before 'while'
 while i<=n do
 ^~~~~
/in/foo.cc:19:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(tc[color[i]],i*num[i]);
    ^
/in/foo.cc:20:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(tn[color[i]],num[i]);
    ^
/in/foo.cc:21:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(tm[color[i]],i);
    ^
/in/foo.cc:22:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(i,2);
    ^
/in/foo.cc:23:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:24:1: error: expected unqualified-id before 'for'
 for i:=1 to m do
 ^~~
/in/foo.cc:27:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(t,sizeof(t),0);
         ^
/in/foo.cc:28:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(tc,sizeof(tc),0);
         ^
/in/foo.cc:29:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(tn,sizeof(tn),0);
         ^
/in/foo.cc:30:9: error: expected constructor, destructor, or type conversion before '(' token
 fillchar(tm,sizeof(tm),0);
         ^
/in/foo.cc:31:1: error: 'i' does not name a type
 i:=2;
 ^
/in/foo.cc:32:1: error: expected unqualified-id before 'while'
 while i<=n do
 ^~~~~
/in/foo.cc:35:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(tc[color[i]],i*num[i]);
    ^
/in/foo.cc:36:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(tn[color[i]],num[i]);
    ^
/in/foo.cc:37:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(tm[color[i]],i);
    ^
/in/foo.cc:38:4: error: expected constructor, destructor, or type conversion before '(' token
 inc(i,2);
    ^
/in/foo.cc:39:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:40:1: error: expected unqualified-id before 'for'
 for i:=1 to m do
 ^~~
/in/foo.cc:43:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(sum);
        ^
/in/foo.cc:44:1: error: 'end' does not name a type
 end.
 ^~~

信息

递交者
类型
递交
题目
P1976 求和
语言
C++
递交时间
2021-12-18 16:44:36
评测时间
2021-12-18 16:44:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes