#include #include using namespace std; template int sum( array< array< int , R_SIZE > , C_SIZE > & x) { int s = 0; for (int r = 0; r < R_SIZE; ++r) for (int c = 0; c< C_SIZE; ++c) s += x[r][c]; return(s); } int main() { int result; constexpr int nrows=2; constexpr int ncols=3; int r; int c; array< array< int , nrows > , ncols > x; for (r=0;r