The nested table variable has to be initialized and extended before you can use it in the assignement statement.
declare
type nested_type is table of number;
v1 nested_type := nested_type();
begin
for i in 1..10
loop
v1.extend;
v1(i) := i;
end loop;
for j in 1..v1.COUNT
loop
dbms_output.put_line(v1(j));
end loop;
end;