/ Vijos /

记录详情

Compile Error

/in/foo.cc:5:17: error: too many decimal points in number
     fl,fr:array[0..maxn,0..maxk]of longint;
                 ^~~~~~~
/in/foo.cc:5:25: error: too many decimal points in number
     fl,fr:array[0..maxn,0..maxk]of longint;
                         ^~~~~~~
/in/foo.cc:6:13: error: too many decimal points in number
     v:array[0..maxn,0..maxn]of longint;
             ^~~~~~~
/in/foo.cc:6:21: error: too many decimal points in number
     v:array[0..maxn,0..maxn]of longint;
                     ^~~~~~~
/in/foo.cc:7:19: error: too many decimal points in number
     a,sum,f:array[0..maxn]of longint;
                   ^~~~~~~
/in/foo.cc:2:5: error: 'maxn' does not name a type
     maxn=4040;
     ^~~~
/in/foo.cc:3:5: error: 'maxk' does not name a type
     maxk=550;
     ^~~~
/in/foo.cc:4:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:6:6: error: found ':' in nested-name-specifier, expected '::'
     v:array[0..maxn,0..maxn]of longint;
      ^
/in/foo.cc:6:5: error: 'v' does not name a type
     v:array[0..maxn,0..maxn]of longint;
     ^
/in/foo.cc:7:5: error: 'a' does not name a type
     a,sum,f:array[0..maxn]of longint;
     ^
/in/foo.cc:8:5: error: 'n' does not name a type
     n,k,ans:longint;
     ^
/in/foo.cc:10:1: error: 'function' does not name a type
 function max(x,y:longint):longint;
 ^~~~~~~~
/in/foo.cc:11:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:13:9: error: expected constructor, destructor, or type conversion before '(' token
     exit(y);
         ^
/in/foo.cc:14:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:16:1: error: 'procedure' does not name a type
 procedure dfsl(x:longint);
 ^~~~~~~~~
/in/foo.cc:17:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:19:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:21:5: error: expected unqualified-id before 'for'
     for i:=1 to v[x,0] do
     ^~~
/in/foo.cc:25:17: error: expected constructor, destructor, or type conversion before '(' token
             dfsl(v[x,i]);
                 ^
/in/foo.cc:26:13: error: expected unqualified-id before 'for'
             for j:=1 to k do
             ^~~
/in/foo.cc:28:9: error: 'end' does not name a type
         end;
         ^~~
/in/foo.cc:29:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:31:1: error: 'procedure' does not name a type
 procedure dfsr(x:longint);
 ^~~~~~~~~
/in/foo.cc:32:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:34:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:39:17: error: expected constructor, destructor, or type conversion before '(' token
             dfsr(v[x,i]);
                 ^
/in/foo.cc:40:13: error: expected unqualified-id before 'for'
             for j:=1 to k do
             ^~~
/in/foo.cc:42:9: error: 'end' does not name a type
         end;
         ^~~
/in/foo.cc:43:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:45:1: error: 'procedure' does not name a type
 procedure main;
 ^~~~~~~~~
/in/foo.cc:46:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:48:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:50:5: error: expected unqualified-id before 'for'
     for i:=1 to n do
     ^~~
/in/foo.cc:53:16: error: expected constructor, destructor, or type conversion before '(' token
             inc(v[f[i],0]);v[f[i],v[f[i],0]]:=i;
                ^
/in/foo.cc:53:28: error: 'v' does not name a type
             inc(v[f[i],0]);v[f[i],v[f[i],0]]:=i;
                            ^
/in/foo.cc:54:9: error: 'end' does not name a type
         end;
         ^~~
/in/foo.cc:55:9: error: expected constructor, destructor, or type conversion before '(' token
     dfsl(1);
         ^
/in/foo.cc:56:9: error: expected constructor, destructor, or type conversion before '(' token
     dfsr(1);
         ^
/in/foo.cc:57:5: error: expected unqualified-id before 'for'
     for i:=1 to n do
     ^~~
/in/foo.cc:61:12: error: expected constructor, destructor, or type conversion before '(' token
     writeln(ans);
            ^
/in/foo.cc:62:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:64:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:66:1: error: 'end' does not name a type
 end.
 ^~~

信息

递交者
类型
递交
题目
P1676 陶陶吃苹果
语言
C++
递交时间
2017-08-25 15:34:58
评测时间
2017-08-25 15:34:58
评测机
分数
0
总耗时
14ms
峰值内存
2.82 MiB