/ Vijos /

记录详情

Compile Error

foo.cpp:1:17: error: too many decimal points in number
 var lc,rc:array[1..20000] of longint;
                 ^
foo.cpp:2:9: error: too many decimal points in number
 a:array[1..20000] of char; h,t:longint; c:char; procedure sea1(r:longint);
         ^
foo.cpp:1:1: error: 'var' does not name a type
 var lc,rc:array[1..20000] of longint;
 ^
foo.cpp:2:2: error: found ':' in nested-name-specifier, expected '::'
 a:array[1..20000] of char; h,t:longint; c:char; procedure sea1(r:longint);
  ^
foo.cpp:2:1: error: 'a' does not name a type
 a:array[1..20000] of char; h,t:longint; c:char; procedure sea1(r:longint);
 ^
foo.cpp:2:28: error: 'h' does not name a type
 a:array[1..20000] of char; h,t:longint; c:char; procedure sea1(r:longint);
                            ^
foo.cpp:2:41: error: 'c' does not name a type
 a:array[1..20000] of char; h,t:longint; c:char; procedure sea1(r:longint);
                                         ^
foo.cpp:2:49: error: 'procedure' does not name a type
 a:array[1..20000] of char; h,t:longint; c:char; procedure sea1(r:longint);
                                                 ^
foo.cpp:3:1: error: 'begin' does not name a type
 begin
 ^
foo.cpp:4:29: error: expected constructor, destructor, or type conversion before '(' token
 if a[r]='0' then exit; write(a[r]); if lc[r]<>0 then sea1(lc[r]); if rc[r]<>0 then sea1(rc[r]); end;
                             ^
foo.cpp:4:37: error: expected unqualified-id before 'if'
 if a[r]='0' then exit; write(a[r]); if lc[r]<>0 then sea1(lc[r]); if rc[r]<>0 then sea1(rc[r]); end;
                                     ^
foo.cpp:4:67: error: expected unqualified-id before 'if'
 if a[r]='0' then exit; write(a[r]); if lc[r]<>0 then sea1(lc[r]); if rc[r]<>0 then sea1(rc[r]); end;
                                                                   ^
foo.cpp:4:97: error: 'end' does not name a type
 if a[r]='0' then exit; write(a[r]); if lc[r]<>0 then sea1(lc[r]); if rc[r]<>0 then sea1(rc[r]); end;
                                                                                                 ^
foo.cpp:5:1: error: 'procedure' does not name a type
 procedure sea2(r:longint);
 ^
foo.cpp:6:1: error: 'begin' does not name a type
 begin
 ^
foo.cpp:7:24: error: expected unqualified-id before 'if'
 if a[r]='0' then exit; if lc[r]<>0 then sea2(lc[r]); write(a[r]); if rc[r]<>0 then sea2(rc[r]); end;
                        ^
foo.cpp:7:59: error: expected constructor, destructor, or type conversion before '(' token
 if a[r]='0' then exit; if lc[r]<>0 then sea2(lc[r]); write(a[r]); if rc[r]<>0 then sea2(rc[r]); end;
                                                           ^
foo.cpp:7:67: error: expected unqualified-id before 'if'
 if a[r]='0' then exit; if lc[r]<>0 then sea2(lc[r]); write(a[r]); if rc[r]<>0 then sea2(rc[r]); end;
                                                                   ^
foo.cpp:7:97: error: 'end' does not name a type
 if a[r]='0' then exit; if lc[r]<>0 then sea2(lc[r]); write(a[r]); if rc[r]<>0 then sea2(rc[r]); end;
                                                                                                 ^
foo.cpp:8:1: error: 'procedure' does not name a type
 procedure sea3(r:longint);
 ^
foo.cpp:9:1: error: 'begin' does not name a type
 begin
 ^
foo.cpp:10:24: error: expected unqualified-id before 'if'
 if a[r]='0' then exit; if lc[r]<>0 then sea3(lc[r]); if rc[r]<>0 then sea3(rc[r]); write(a[r]); end;
                        ^
foo.cpp:10:54: error: expected unqualified-id before 'if'
 if a[r]='0' then exit; if lc[r]<>0 then sea3(lc[r]); if rc[r]<>0 then sea3(rc[r]); write(a[r]); end;
                                                      ^
foo.cpp:10:89: error: expected constructor, destructor, or type conversion before '(' token
 if a[r]='0' then exit; if lc[r]<>0 then sea3(lc[r]); if rc[r]<>0 then sea3(rc[r]); write(a[r]); end;
                                                                                         ^
foo.cpp:10:97: error: 'end' does not name a type
 if a[r]='0'

信息

递交者
类型
递交
题目
P1743 YYB吃苹果
语言
C++
递交时间
2015-12-20 16:08:25
评测时间
2015-12-20 16:08:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes