#include <iostream>
using namespace std;
int main(){
const int H = 5;
const int W = 5;
int m[H] = {0};
int matrix[H][W] = {
{0,0,0,0,0},
{0,0,0,0,1},
{0,0,1,1,1},
{0,0,0,1,1},
{0,1,1,1,1}
};
int i,j;
for( i = 0 ; i < H ; i++ )
for( j = 0 ; j < W ; j++...