prints the largest component
for ( int i = 0 ; i < n ; i ++ ) { for ( int j = 0 ; j < m ; j ++ ) { if ( result [ i ] [ j ] ) cout << result [ i ] [ j ] << " ▁ " ; else cout << " . ▁ " ; } cout << " STRNEWLINE " ; } }