prog.cpp:9:26: error: template-id ‘maxn<char*>’ for ‘const char* maxn(const char**, int)’ does not match any template declaration
template <> const char * maxn<char *>(const char * [], const int);
^~~~~~~~~~~~
prog.cpp:7:3: note: candidate is: template<class T> T maxn(const T*, int)
T maxn(const T[], const int);
^~~~
prog.cpp:33:26: error: template-id ‘maxn<char*>’ for ‘const char* maxn(const char**, int)’ does not match any template declaration
template <> const char * maxn<char *>(const char * arr[], int const size)
^~~~~~~~~~~~
prog.cpp:22:3: note: candidate is: template<class T> T maxn(const T*, int)
T maxn(const T arr[], int size)
^~~~