
Write a program that computes the shortest closed route through a set of two-dimensional points.
printf '0, 0\n2, 0\n2, 1\n0, 1\n' | ./route_loop_length | cat -e6.00$printf '0, 0\n3, 4\n' | ./route_loop_length | cat -e10.00$route_loop_length.cwritesqrtfgetlinefscanfferrorfeoffabsffprintfmalloccallocreallocfreestdinstdoutstderr
Run the tests to grade your code
Write a program that computes the shortest closed route through a set of two-dimensional points.
printf '0, 0\n2, 0\n2, 1\n0, 1\n' | ./route_loop_length | cat -e6.00$printf '0, 0\n3, 4\n' | ./route_loop_length | cat -e10.00$route_loop_length.cwritesqrtfgetlinefscanfferrorfeoffabsffprintfmalloccallocreallocfreestdinstdoutstderr
Run the tests to grade your code
Memory will appear here