#include <iostream>
#include <vector>
using namespace std;
int main() {
int width = 7;
int height = 5;
// vector<vector<int>> board(height, vector<int>(width, 0));
int board[5][7] = {0};
// 직사각형 색칠
for (int y =2; y < 4; y++) {
for (int x = 0; x < 4; x++) {
board[y][x] = 1;
}
}
// 출력
for (int y = height - 1; y >= 0; y--) {
for (int x = 0; x < width; x++) {
cout << board[y][x] << " ";
}
cout << endl;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: