foo.cc:101:11: warning: multi-character character constant [-Wmultichar]
101 | while pos('x^2',b)>0 do
| ^~~~~
foo.cc:105:8: warning: multi-character character constant [-Wmultichar]
105 | j:=pos('x^2',b);
| ^~~~~
foo.cc:115:7: error: empty character constant
115 | if s1='' then i1:=1 else val(s1,i1);
| ^~
foo.cc:139:7: error: empty character constant
139 | if s1='' then i1:=1 else val(s1,i1);
| ^~
foo.cc:199:48: warning: character constant too long for its type
199 | if ((a1=0) and (a2=0) and (a3=0)) then writeln('181818181818') else
| ^~~~~~~~~~~~~~
foo.cc:1:1: error: 'Program' does not name a type
1 | Program P1646_NewVersion;
| ^~~~~~~
foo.cc:3:1: error: 'Var' does not name a type
3 | Var i,j,k,l,n:Longint;
| ^~~
foo.cc:5:1: error: 'a1' does not name a type
5 | a1,a2,a3,x1,x2,x3:Longint;
| ^~
foo.cc:7:1: error: 'a' does not name a type
7 | a,b:string;
| ^
foo.cc:9:1: error: 'Procedure' does not name a type
9 | Procedure PutOut;
| ^~~~~~~~~
foo.cc:11:1: error: 'Var' does not name a type
11 | Var delta,ans1,ans2,tmp:real;
| ^~~
foo.cc:13:1: error: 'Begin' does not name a type
13 | Begin
| ^~~~~
foo.cc:21:1: error: expected unqualified-id before 'if'
21 | if delta>0 then
| ^~
foo.cc:27:1: error: 'ans2' does not name a type
27 | ans2:=(-a2-sqrt(delta))/(2*a1);
| ^~~~
foo.cc:29:1: error: expected unqualified-id before 'if'
29 | if ans1>ans2 then
| ^~
foo.cc:33:12: error: 'ans1' does not name a type
33 | tmp:=ans1; ans1:=ans2; ans2:=tmp;
| ^~~~
foo.cc:33:24: error: 'ans2' does not name a type
33 | tmp:=ans1; ans1:=ans2; ans2:=tmp;
| ^~~~
foo.cc:35:1: error: 'end' does not name a type
35 | end;
| ^~~
foo.cc:37:8: error: expected constructor, destructor, or type conversion before '(' token
37 | writeln(2);
| ^
foo.cc:39:1: error: expected unqualified-id before 'if'
39 | if ans1=0 then ans1:=0;
| ^~
foo.cc:41:6: error: expected constructor, destructor, or type conversion before '(' token
41 | write(ans1:0:5,' ');
| ^
foo.cc:43:1: error: expected unqualified-id before 'if'
43 | if ans2=0 then ans2:=0;
| ^~
foo.cc:45:8: error: expected constructor, destructor, or type conversion before '(' token
45 | writeln(ans2:0:5);
| ^
foo.cc:47:1: error: 'end' does not name a type
47 | end
| ^~~
foo.cc:57:8: error: expected constructor, destructor, or type conversion before '(' token
57 | writeln(1);
| ^
foo.cc:59:1: error: expected unqualified-id before 'if'
59 | if ans1=0 then ans1:=0;
| ^~
foo.cc:61:8: error: expected constructor, destructor, or type conversion before '(' token
61 | writeln(ans1:0:5);
| ^
foo.cc:63:1: error: 'end' does not name a type
63 | end
| ^~~
foo.cc:69:1: error: 'end' does not name a type
69 | end
| ^~~
foo.cc:77:1: error: 'ans1' does not name a type
77 | ans1:=-a3/a2;
| ^~~~
foo.cc:79:1: error: expected unqualified-id before 'if'
79 | if ans1=0 then ans1:=0;
| ^~
foo.cc:81:8: error: expected constructor, destructor, or type conversion before '(' token
81 | writeln(ans1:0:5);
| ^
foo.cc:83:1: error: 'end' does not name a type
83 | end;
| ^~~
foo.cc:85:1: error: 'End' does not name a type
85 | End;
| ^~~
foo.cc:87:1: error: 'Procedure' does not name a type
87 | Procedure Deal;
| ^~~~~~~~~
foo.cc:89:1: error: 'Var' does not name a type
89 | Var s1,s2:string;
| ^~~
foo.cc:91:1: error: 'i1' does not name a type
91 | i1,i2,j1,j2:longint;
| ^~
foo.cc:93:1: error: 'Begin' does not name a type
93 | Begin
| ^~~~~
foo.cc:95:8: error: 'x2' does not name a type
95 | x1:=0; x2:=0; x3:=0;
| ^~
foo.cc:95:15: error: 'x3' does not name a type
95 | x1:=0; x2:=0; x3:=0;
| ^~
foo.cc:97:1: error: expected unqualified-id before 'if'
97 | if b[1]'-' then b:='+'+b;
| ^~
foo.cc:101:1: error: expected unqualified-id before 'while'
101 | while pos('x^2',b)>0 do
| ^~~~~
foo.cc:107:1: error: expected unqualified-id before 'if'
107 | if j=0 then break;
| ^~
foo.cc:109:1: error: expected unqualified-id before 'for'
109 | for j1:=j-1 downto 1 do
| ^~~
foo.cc:113:1: error: 's1' does not name a type
113 | s1:=copy(b,j1+1,j-(j1+1));
| ^~
foo.cc:115:1: error: expected unqualified-id before 'if'
115 | if s1='' then i1:=1 else val(s1,i1);
| ^~
foo.cc:117:1: error: expected unqualified-id before 'if'
117 | if b[j1]='-' then x1:=x1-i1 else x1:=x1+i1;
| ^~
foo.cc:119:1: error: expected unqualified-id before 'delete'
119 | delete(b,j1,j+2-j1+1);
| ^~~~~~
foo.cc:121:1: error: 'end' does not name a type
121 | end;
| ^~~
foo.cc:125:1: error: expected unqualified-id before 'while'
125 | while pos('x',b)>0 do
| ^~~~~
foo.cc:131:1: error: expected unqualified-id before 'if'
131 | if j=0 then break;
| ^~
foo.cc:133:1: error: expected unqualified-id before 'for'
133 | for j1:=j-1 downto 1 do
| ^~~
foo.cc:137:1: error: 's1' does not name a type
137 | s1:=copy(b,j1+1,j-(j1+1));
| ^~
foo.cc:139:1: error: expected unqualified-id before 'if'
139 | if s1='' then i1:=1 else val(s1,i1);
| ^~
foo.cc:141:1: error: expected unqualified-id before 'if'
141 | if b[j1]='-' then x2:=x2-i1 else x2:=x2+i1;
| ^~
foo.cc:143:1: error: expected unqualified-id before 'delete'
143 | delete(b,j1,j-j1+1);
| ^~~~~~
foo.cc:145:1: error: 'end' does not name a type
145 | end;
| ^~~
foo.cc:149:1: error: 'begin' does not name a type
149 | begin
| ^~~~~
foo.cc:153:1: error: 'j' does not name a type
153 | j:=length(b);
| ^
foo.cc:155:1: error: expected unqualified-id before 'while'
155 | while j>1 do
| ^~~~~
foo.cc:161:1: error: expected unqualified-id before 'for'
161 | for j1:=2 to j do
| ^~~
foo.cc:165:1: error: 's1' does not name a type
165 | s1:=copy(b,2,j1-2);
| ^~
foo.cc:167:4: error: expected constructor, destructor, or type conversion before '(' token
167 | val(s1,i1);
| ^
foo.cc:169:1: error: expected unqualified-id before 'if'
169 | if b[1]='+' then x3:=x3+i1 else x3:=x3-i1;
| ^~
foo.cc:171:1: error: expected unqualified-id before 'delete'
171 | delete(b,1,j1-1);
| ^~~~~~
foo.cc:173:1: error: 'end' does not name a type
173 | end;
| ^~~
foo.cc:175:1: error: 'end' does not name a type
175 | end;
| ^~~
foo.cc:177:1: error: 'End' does not name a type
177 | End;
| ^~~
foo.cc:179:1: error: 'Begin' does not name a type
179 | Begin
| ^~~~~
foo.cc:183:1: error: 'i' does not name a type
183 | i:=pos('=',a);
| ^
foo.cc:185:1: error: 'b' does not name a type
185 | b:=copy(a,1,i-1);
| ^
foo.cc:187:1: error: expected unqualified-id before 'delete'
187 | delete(a,1,i);
| ^~~~~~
foo.cc:189:1: error: 'Deal' does not name a type
189 | Deal;
| ^~~~
foo.cc:191:1: error: 'a1' does not name a type
191 | a1:=x1; a2:=x2; a3:=x3;
| ^~
foo.cc:191:9: error: 'a2' does not name a type
191 | a1:=x1; a2:=x2; a3:=x3;
| ^~
foo.cc:191:17: error: 'a3' does not name a type
191 | a1:=x1; a2:=x2; a3:=x3;
| ^~
foo.cc:193:1: error: 'b' does not name a type
193 | b:=a;
| ^
foo.cc:195:1: error: 'deal' does not name a type
195 | deal;
| ^~~~
foo.cc:197:4: error: expected constructor, destructor, or type conversion before '(' token
197 | dec(a1,x1); dec(a2,x2); dec(a3,x3);
| ^
foo.cc:197:16: error: expected constructor, destructor, or type conversion before '(' token
197 | dec(a1,x1); dec(a2,x2); dec(a3,x3);
| ^
foo.cc:197:28: error: expected constructor, destructor, or type conversion before '(' token
197 | dec(a1,x1); dec(a2,x2); dec(a3,x3);
| ^
foo.cc:199:1: error: expected unqualified-id before 'if'
199 | if ((a1=0) and (a2=0) and (a3=0)) then writeln('181818181818') else
| ^~
foo.cc:205:1: error: 'End' does not name a type
205 | End.
| ^~~
[Hydro](https://hydro.ac)提供评测服务