Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alexander Hirsch
703602-Compiler-Construction
Commits
0e6e92f6
Commit
0e6e92f6
authored
Jun 28, 2019
by
Alexander Hirsch
Browse files
Merge branch 'patch-1' into 'master'
fixed wrong array size See merge request
!1
parents
0d1e01ab
34237b0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
examples/dijkstra/dijkstra.mc
examples/dijkstra/dijkstra.mc
+4
-5
No files found.
examples/dijkstra/dijkstra.mc
View file @
0e6e92f6
void dijkstra(int[15] path_cost)
void dijkstra(int[16] path_cost)
{
int[1
5
] calc_cost;
int[1
6
] calc_cost;
int i;
int j;
i = 0;
...
...
@@ -96,7 +95,7 @@ void dijkstra(int[15] path_cost)
int
main
()
{
int
[1
5
]
path_cost
;
int
[1
6
]
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
<
1
5
)
while
(
input_counter
<
1
6
)
{
if
(
input_counter
<
4)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment