/ Vijos /

记录详情

Compile Error

foo.cc:1:14: error: too many decimal points in number
    1 | type x=array[1..2] of longint;
      |              ^~~~
foo.cc:69:73: warning: character constant too long for its type
   69 | if (a[1]-a[2]=0) and (b[1]-b[2]=0) and (c[1]-c[2]=0) then begin writeln('181818181818'); halt; end;
      |                                                                         ^~~~~~~~~~~~~~
foo.cc:1:1: error: 'type' does not name a type
    1 | type x=array[1..2] of longint;
      | ^~~~
foo.cc:3:1: error: 'var' does not name a type
    3 | var str1,str2,str:string;
      | ^~~
foo.cc:5:1: error: 'k' does not name a type
    5 | k,a1,b1,c1,a2,b2,c2:longint;
      | ^
foo.cc:7:1: error: 'a' does not name a type
    7 | a,b,c:x;
      | ^
foo.cc:9:1: error: 'function' does not name a type; did you mean 'union'?
    9 | function firstcx(str:string;k:integer):boolean;
      | ^~~~~~~~
      | union
foo.cc:9:30: error: found ':' in nested-name-specifier, expected '::'
    9 | function firstcx(str:string;k:integer):boolean;
      |                              ^
      |                              ::
foo.cc:9:29: error: 'k' does not name a type
    9 | function firstcx(str:string;k:integer):boolean;
      |                             ^
foo.cc:11:1: error: 'var' does not name a type
   11 | var i:integer;
      | ^~~
foo.cc:13:1: error: 'begin' does not name a type
   13 | begin
      | ^~~~~
foo.cc:19:5: error: expected constructor, destructor, or type conversion before '(' token
   19 | exit(true);
      |     ^
foo.cc:21:1: error: 'end' does not name a type
   21 | end;
      | ^~~
foo.cc:23:1: error: 'function' does not name a type; did you mean 'union'?
   23 | function firstc(str:string):boolean;
      | ^~~~~~~~
      | union
foo.cc:25:1: error: 'var' does not name a type
   25 | var i:longint;
      | ^~~
foo.cc:27:1: error: 'begin' does not name a type
   27 | begin
      | ^~~~~
foo.cc:31:1: error: expected unqualified-id before 'while'
   31 | while (str[i]'+') and (str[i]'-') and (i0 then writeln(x1:0:5,' ',x2:0:5);
      | ^~~~~
foo.cc:33:1: error: expected unqualified-id before 'if'
   33 | if a=3 then if (str='x') or ((str='x') and (str='^')) then
      | ^~
foo.cc:37:41: error: 'xs' does not name a type
   37 | if str[j]='+' then begin c[p]:=c[p]+xs; xs:=0;break; end
      |                                         ^~
foo.cc:37:47: error: expected unqualified-id before 'break'
   37 | if str[j]='+' then begin c[p]:=c[p]+xs; xs:=0;break; end
      |                                               ^~~~~
foo.cc:37:54: error: 'end' does not name a type
   37 | if str[j]='+' then begin c[p]:=c[p]+xs; xs:=0;break; end
      |                                                      ^~~
foo.cc:39:46: error: 'xs' does not name a type
   39 | else if str[j]='-' then begin c[p]:=c[p]-xs; xs:=0;break; end;
      |                                              ^~
foo.cc:39:52: error: expected unqualified-id before 'break'
   39 | else if str[j]='-' then begin c[p]:=c[p]-xs; xs:=0;break; end;
      |                                                    ^~~~~
foo.cc:39:59: error: 'end' does not name a type
   39 | else if str[j]='-' then begin c[p]:=c[p]-xs; xs:=0;break; end;
      |                                                           ^~~
foo.cc:41:1: error: 'end' does not name a type
   41 | end;
      | ^~~
foo.cc:43:1: error: 'end' does not name a type
   43 | end;
      | ^~~
foo.cc:45:4: error: expected constructor, destructor, or type conversion before '(' token
   45 | inc(i);
      |    ^
foo.cc:47:1: error: 'end' does not name a type
   47 | end;
      | ^~~
foo.cc:49:1: error: expected unqualified-id before 'if'
   49 | if xs0 then
      | ^~
foo.cc:55:41: error: 'xs' does not name a type
   55 | if str[j]='+' then begin c[p]:=c[p]+xs; xs:=0; break; end
      |                                         ^~
foo.cc:55:48: error: expected unqualified-id before 'break'
   55 | if str[j]='+' then begin c[p]:=c[p]+xs; xs:=0; break; end
      |                                                ^~~~~
foo.cc:55:55: error: 'end' does not name a type
   55 | if str[j]='+' then begin c[p]:=c[p]+xs; xs:=0; break; end
      |                                                       ^~~
foo.cc:57:46: error: 'xs' does not name a type
   57 | else if str[j]='-' then begin c[p]:=c[p]-xs; xs:=0; break; end;
      |                                              ^~
foo.cc:57:53: error: expected unqualified-id before 'break'
   57 | else if str[j]='-' then begin c[p]:=c[p]-xs; xs:=0; break; end;
      |                                                     ^~~~~
foo.cc:57:60: error: 'end' does not name a type
   57 | else if str[j]='-' then begin c[p]:=c[p]-xs; xs:=0; break; end;
      |                                                            ^~~
foo.cc:59:1: error: 'end' does not name a type
   59 | end;
      | ^~~
foo.cc:61:1: error: 'end' does not name a type
   61 | end;
      | ^~~
foo.cc:63:1: error: 'begin' does not name a type
   63 | begin
      | ^~~~~
foo.cc:67:7: error: expected constructor, destructor, or type conversion before '(' token
   67 | calstr(str1,1); calstr(str2,2);
      |       ^
foo.cc:67:23: error: expected constructor, destructor, or type conversion before '(' token
   67 | calstr(str1,1); calstr(str2,2);
      |                       ^
foo.cc:69:1: error: expected unqualified-id before 'if'
   69 | if (a[1]-a[2]=0) and (b[1]-b[2]=0) and (c[1]-c[2]=0) then begin writeln('181818181818'); halt; end;
      | ^~
foo.cc:69:90: error: 'halt' does not name a type
   69 | if (a[1]-a[2]=0) and (b[1]-b[2]=0) and (c[1]-c[2]=0) then begin writeln('181818181818'); halt; end;
      |                                                                                          ^~~~
foo.cc:69:96: error: 'end' does not name a type
   69 | if (a[1]-a[2]=0) and (b[1]-b[2]=0) and (c[1]-c[2]=0) then begin writeln('181818181818'); halt; end;
      |                                                                                                ^~~
foo.cc:71:1: error: expected unqualified-id before 'if'
   71 | if (a[1]-a[2]=0) and (b[1]-b[2]=0) and (c[1]-c[2]0) then begin writeln(0); halt; end;
      | ^~
foo.cc:71:76: error: 'halt' does not name a type
   71 | if (a[1]-a[2]=0) and (b[1]-b[2]=0) and (c[1]-c[2]0) then begin writeln(0); halt; end;
      |                                                                            ^~~~
foo.cc:71:82: error: 'end' does not name a type
   71 | if (a[1]-a[2]=0) and (b[1]-b[2]=0) and (c[1]-c[2]0) then begin writeln(0); halt; end;
      |                                                                                  ^~~
foo.cc:73:8: error: expected constructor, destructor, or type conversion before '(' token
   73 | calroot(a[1]-a[2],b[1]-b[2],c[1]-c[2]);
      |        ^
foo.cc:75:1: error: 'end' does not name a type
   75 | end.
      | ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1646 难题?水题?
语言
C++
递交时间
2022-04-16 14:39:54
评测时间
2022-04-16 14:39:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes