Приведенный ниже код компилируется нормально.
Код: Выделить всё
#include
using namespace std;
template
void debug(int (&dp)[m][n]) {
for(int i = 0; i < m; ++i) for(int j = 0; j
Подробнее здесь: [url]https://stackoverflow.com/questions/78781073/how-may-i-invoke-the-c-template-function[/url]