use dim_vector(1,n) instead of deprecated (n)