diff --git a/sk1a/Makefile b/sk1a/Makefile index 45d0a8e..151f84a 100644 --- a/sk1a/Makefile +++ b/sk1a/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS = -g -Wall -Werror +CFLAGS = -g -Wall -Werror -std=c99 all: program @@ -13,4 +13,4 @@ main.o: main.c $(CC) $(CFLAGS) -c main.c -o main.o clean: - rm -rf program *.o *.exe *.exe.stackdump \ No newline at end of file + rm -rf program *.o *.exe *.exe.stackdump diff --git a/sk1a/main.o b/sk1a/main.o new file mode 100644 index 0000000..b81127b Binary files /dev/null and b/sk1a/main.o differ diff --git a/sk1a/maze.c b/sk1a/maze.c index 875b82c..d843731 100644 --- a/sk1a/maze.c +++ b/sk1a/maze.c @@ -97,7 +97,7 @@ int solve_maze(char* maze, int size) { } else if (posX == size - 1 && posY == size - 1) { maze2d[0][0] = '*'; - //cleanup data bits + //cleanuup data bits for (int y = 0; y < size; y++) { for (int x = 0; x < size; x++) { if (maze2d[y][x] == CHECKED_BIT || maze2d[y][x] == 0) { @@ -124,7 +124,7 @@ int solve_maze(char* maze, int size) { maze[y * size + x] = maze2d[y][x]; } } - printf("\nend"); + printf("\n\nend"); return 1; } } diff --git a/sk1a/maze.o b/sk1a/maze.o new file mode 100644 index 0000000..b558082 Binary files /dev/null and b/sk1a/maze.o differ diff --git a/sk1a/program b/sk1a/program new file mode 100755 index 0000000..4f1e3e6 Binary files /dev/null and b/sk1a/program differ