Skip to content
Snippets Groups Projects
Commit 34237b0f authored by User expired's avatar User expired
Browse files

fixed wrong array size

parent 0d1e01ab
Branches patch-1
No related tags found
No related merge requests found
void dijkstra(int[15] path_cost)
void dijkstra(int[16] path_cost)
{
int[15] calc_cost;
int[16] calc_cost;
int i;
int j;
i = 0;
......@@ -96,7 +95,7 @@ void dijkstra(int[15] path_cost)
int main()
{
int[15] path_cost;
int[16] path_cost;
int input_counter;
int node_counter;
input_counter = 1;
......@@ -106,7 +105,7 @@ int main()
print("Enter the path costs ('0' = no path)");
print_nl();
while (input_counter < 15)
while (input_counter < 16)
{
if (input_counter < 4)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment