0_0_20775657_20058.cpp:1:1: error: expected unqualified-id before '<' token
<span style="font-family:SimSun;font-size:18px;">var
^
0_0_20775657_20058.cpp:3:1: error: 'function' does not name a type
function find(n:longint):longint;
^
0_0_20775657_20058.cpp:4:1: error: 'var' does not name a type
var
^
0_0_20775657_20058.cpp:6:1: error: 'begin' does not name a type
begin
^
0_0_20775657_20058.cpp:7:11: error: 'p' does not name a type
ans:=n;p:=2;
^
0_0_20775657_20058.cpp:8:4: error: expected unqualified-id before 'while'
while (n>1) do
^
0_0_20775657_20058.cpp:13:10: error: expected unqualified-id before 'while'
while (n mod p=0) do n:=n div p;
^
0_0_20775657_20058.cpp:14:7: error: 'end' does not name a type
end;
^
0_0_20775657_20058.cpp:15:10: error: expected constructor, destructor, or type conversion before '(' token
inc(p);
^
0_0_20775657_20058.cpp:16:4: error: 'end' does not name a type
end;
^
0_0_20775657_20058.cpp:17:8: error: expected constructor, destructor, or type conversion before '(' token
exit(ans);
^
0_0_20775657_20058.cpp:18:1: error: 'end' does not name a type
end;
^
0_0_20775657_20058.cpp:20:1: error: 'begin' does not name a type
begin
^
0_0_20775657_20058.cpp:22:4: error: expected unqualified-id before 'while'
while (t>0) do
^
0_0_20775657_20058.cpp:25:11: error: expected constructor, destructor, or type conversion before '(' token
read(x);
^
0_0_20775657_20058.cpp:26:14: error: expected constructor, destructor, or type conversion before '(' token
writeln(find(x));
^
0_0_20775657_20058.cpp:27:4: error: 'end' does not name a type
end;
^
0_0_20775657_20058.cpp:28:1: error: 'end' does not name a type
end.
^
|