0_0_15654195_3939.cpp:7:16: error: too many decimal points in number
tr : array[1..maxn*2] of longint;
^
0_0_15654195_3939.cpp:8:15: error: too many decimal points in number
s : array[1..maxn*2] of longint;
^
0_0_15654195_3939.cpp:1:1: error: 'program' does not name a type
program prob_C;
^
0_0_15654195_3939.cpp:3:5: error: 'maxn' does not name a type
maxn = 5000;
^
0_0_15654195_3939.cpp:5:1: error: 'var' does not name a type
var
^
0_0_15654195_3939.cpp:7:8: error: found ':' in nested-name-specifier, expected '::'
tr : array[1..maxn*2] of longint;
^
0_0_15654195_3939.cpp:7:5: error: 'tr' does not name a type
tr : array[1..maxn*2] of longint;
^
0_0_15654195_3939.cpp:8:7: error: found ':' in nested-name-specifier, expected '::'
s : array[1..maxn*2] of longint;
^
0_0_15654195_3939.cpp:8:5: error: 's' does not name a type
s : array[1..maxn*2] of longint;
^
0_0_15654195_3939.cpp:9:1: error: 'procedure' does not name a type
procedure init;
^
0_0_15654195_3939.cpp:10:1: error: 'var' does not name a type
var
^
0_0_15654195_3939.cpp:12:1: error: 'begin' does not name a type
begin
^
0_0_15654195_3939.cpp:14:5: error: expected unqualified-id before 'for'
for i := 1 to n do
^
0_0_15654195_3939.cpp:17:9: error: 's' does not name a type
s[i] := s[i] +1;
^
0_0_15654195_3939.cpp:18:5: error: 'end' does not name a type
end;
^
0_0_15654195_3939.cpp:19:5: error: 'readln' does not name a type
readln;
^
0_0_15654195_3939.cpp:20:1: error: 'end' does not name a type
end;
^
0_0_15654195_3939.cpp:22:1: error: 'function' does not name a type
function lowbit(x : longint): longint;
^
0_0_15654195_3939.cpp:23:1: error: 'begin' does not name a type
begin
^
0_0_15654195_3939.cpp:25:1: error: 'end' does not name a type
end;
^
0_0_15654195_3939.cpp:27:1: error: 'function' does not name a type
function sum(x : longint): longint;
^
0_0_15654195_3939.cpp:28:1: error: 'var' does not name a type
var
^
0_0_15654195_3939.cpp:30:1: error: 'begin' does not name a type
begin
^
0_0_15654195_3939.cpp:32:5: error: 'sum' does not name a type
sum := 0;
^
0_0_15654195_3939.cpp:33:5: error: 'i' does not name a type
i := x;
^
0_0_15654195_3939.cpp:34:5: error: 'repeat' does not name a type
repeat
^
0_0_15654195_3939.cpp:36:9: error: 'i' does not name a type
i := i- lowbit(i);
^
0_0_15654195_3939.cpp:37:5: error: 'until' does not name a type
until i = 0;
^
0_0_15654195_3939.cpp:38:1: error: 'end' does not name a type
end;
^
0_0_15654195_3939.cpp:40:1: error: 'procedure' does not name a type
procedure add(x : longint);
^
0_0_15654195_3939.cpp:41:1: error: 'var' does not name a type
var
^
0_0_15654195_3939.cpp:43:1: error: 'begin' does not name a type
begin
^
0_0_15654195_3939.cpp:45:5: error: 'repeat' does not name a type
repeat
^
0_0_15654195_3939.cpp:47:9: error: 'i' does not name a type
i := i + lowbit(i);
^
0_0_15654195_3939.cpp:48:5: error: 'until' does not name a type
until i > n;
^
0_0_15654195_3939.cpp:49:1: error: 'end' does not name a type
end;
^
0_0_15654195_3939.cpp:50:1: error: 'procedure' does not name a type
procedure main;
^
0_0_15654195_3939.cpp:51:1: error: 'var' does not name a type
var
^
0_0_15654195_3939.cpp:53:1: error: 'begin' does not name a type
begin
^
0_0_15654195_3939.cpp:55:5: error: 'num' does not name a type
num := 0;
^
0_0_15654195_3939.cpp:56:5: error: expected unqualified-id before 'for'
for i := n downto 1 do
^
0_0_15654195_3939.cpp:59:12: error: expected constructor, destructor, or type conversion before '(' token
add(s[i]);
^
0_0_15654195_3939.cpp:60:5: error: 'end' does not name a type
end;
^
0_0_15654195_3939.cpp:61:5: error: 'ans' does not name a type
ans := num;
^
0_0_15654195_3939.cpp:62:5: error: expected unqualified-id before 'for'
for i := 1 to n do
^
0_0_15654195_3939.cpp:65:9: error: 'num' does not name a type
num := num + n - s[i];
^
0_0_15654195_3939.cpp:66:9: error: expected unqualified-id before 'if'
if num < ans then ans := num;
^
0_0_15654195_3939.cpp:67:5: error: 'end' does not name a type
end;
^
0_0_15654195_3939.cpp:68:12: error: expected constructor, destructor, or type conversion before '(' token
writeln(ans);
^
0_0_15654195_3939.cpp:69:1: error: 'end' does not name a type
end;
^
0_0_15654195_3939.cpp:71:1: error: 'begin' does not name a type
begin
^
0_0_15654195_3939.cpp:74:1: error: 'end' does not name a type
end.
^
|