prog.cpp: In function ‘int main()’:
prog.cpp:30:14: error: no matching function for call to ‘print(int [r][c])’
print(arr); //
^
prog.cpp:5:7: note: candidate: template<long unsigned int row, long unsigned int col> void print(int (&)[row][col])
void print(int (&a)[row][col])
^~~~~
prog.cpp:5:7: note: template argument deduction/substitution failed:
prog.cpp:30:14: note: variable-sized array type ‘long int’ is not a valid template argument
print(arr); //
^