using System;using System.Collections.Generic;using System.Collections;using System.Linq;using System.Text;namespace ConsoleApplication1{ struct Ruta { public List<int> p; public float l; public float t; } class Program { [STAThread] static void Main(string[] args) { Ruta[] ruta = new Ruta[5]; int puntos; string res1, res2; for (int i = 0; i < 5; i++) { Console.Write("Cuantos puntos: "); res1 = Console.ReadLine(); puntos = Convert.ToInt32(res1); ruta[i].p = new List<int>(); for (int j = 0; j < puntos; j++) { res2 = Console.ReadLine(); ruta[i].p.Add(Convert.ToInt32(res2)); } } Console.ReadKey(); } }}