/ Vijos /

记录详情

Compile Error

/in/foo.cc:2:14: error: too many decimal points in number
 a,b,c:array [0..500005] of longint;
              ^~~~~~~~~
/in/foo.cc:1:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:3:1: error: 'n' does not name a type
 n,l,i,min,t:longint;
 ^
/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 read(a[i],b[i]);
 ^~~
/in/foo.cc:7:1: error: expected unqualified-id before 'for'
 for i:=2 to n do c[i]:=c[i-1]-a[i]+b[i-1];
 ^~~
/in/foo.cc:8:1: error: 'min' does not name a type
 min:=1000000000; t:=0;
 ^~~
/in/foo.cc:8:18: error: 't' does not name a type
 min:=1000000000; t:=0;
                  ^
/in/foo.cc:9:1: error: expected unqualified-id before 'for'
 for i:=1 to n do if (c[i]<min) then min:=c[i];
 ^~~
/in/foo.cc:10:1: error: expected unqualified-id before 'for'
 for i:=1 to n do if (c[i]=min) then
 ^~~
/in/foo.cc:11:31: error: 't' does not name a type
 if (t=0) then begin write(i); t:=1; end else write(' ',i);
                               ^
/in/foo.cc:11:37: error: 'end' does not name a type
 if (t=0) then begin write(i); t:=1; end else write(' ',i);
                                     ^~~
/in/foo.cc:12:1: error: 'writeln' does not name a type
 writeln;
 ^~~~~~~
/in/foo.cc:13:1: error: 'end' does not name a type
 end.
 ^~~

信息

递交者
类型
递交
题目
P1091 环城旅行
语言
C++
递交时间
2018-03-29 15:57:06
评测时间
2018-03-29 15:57:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes