Code:
cout<< "Insert the maximum number of hops of the routing algorithm used :"; cin>> num_of_hops; cout << endl << "number of paths : " << num_of_paths << endl; int path_matrix[][]; path_matrix[num_of_paths][num_of_hops + 1]; float path_length[]; // The total length of each path path_length[num_of_paths];
error C2466: cannot allocate an array of constant size 0
error C2133: 'a' : unknown size
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
Comment