#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

#define NULLPO NULL
#define WALL 0
#define FLOOR 1

#define WIDTH 15
#define HEIGHT 13

#define S_WALL "■"
#define S_FLOOR " "


int main(int argc, char **argv){
char maze[HEIGHT][WIDTH];
int y, x;

memset(maze, WALL, HEIGHT * WIDTH);
for (y = 0; y < HEIGHT; ++y) {
for (x = 0; y < WIDTH; ++x) {
printf("%s", (maze[y][x] == WALL) ? S_WALL : S_FLOOR);
}
printf("\n");
}
return 0;
}
ニコニコ動画のプログラムを真似てみたのですが■が大量発生して強制終了してしまいます