#include <iostream>
template<int Rows, int Columns>
void FillArray( int (&arr)[Rows][Columns] )
{
std::cout << "Rows: " << Rows << " Columns: " << Columns << std::endl;
}
int main()
{
int array[12][30] , array2[5][23] , array3[12][234];
FillArray( array );
FillArray( array2 );
FillArray( array3 );
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdGVtcGxhdGU8aW50IFJvd3MsIGludCBDb2x1bW5zPgp2b2lkIEZpbGxBcnJheSggaW50ICgmYXJyKVtSb3dzXVtDb2x1bW5zXSApCnsKCXN0ZDo6Y291dCA8PCAiUm93czogIiA8PCBSb3dzIDw8ICIgQ29sdW1uczogIiA8PCBDb2x1bW5zIDw8IHN0ZDo6ZW5kbDsKfQoKaW50IG1haW4oKQp7CglpbnQgYXJyYXlbMTJdWzMwXSAsIGFycmF5Mls1XVsyM10gLCBhcnJheTNbMTJdWzIzNF07CgkKCUZpbGxBcnJheSggYXJyYXkgKTsKCUZpbGxBcnJheSggYXJyYXkyICk7CglGaWxsQXJyYXkoIGFycmF5MyApOwoJcmV0dXJuIDA7Cn0=