prog.cpp:36:29: error: template argument 2 is invalid
pair<int**,<pair<int,int> > > matrixMultiply(int** x,int m,int n,int** y)
^
prog.cpp: In function 'int matrixMultiply(int**, int, int, int**)':
prog.cpp:52:37: error: no matching function for call to 'make_pair(int [m][n], std::pair<int, int>)'
return make_pair(mul,make_pair(m,n));
^
In file included from /usr/include/c++/5/bits/stl_algobase.h:64:0,
from /usr/include/c++/5/bits/char_traits.h:39,
from /usr/include/c++/5/ios:40,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from prog.cpp:1:
/usr/include/c++/5/bits/stl_pair.h:286:5: note: candidate: template<class _T1, class _T2> std::pair<_T1, _T2> std::make_pair(_T1, _T2)
make_pair(_T1 __x, _T2 __y)
^
/usr/include/c++/5/bits/stl_pair.h:286:5: note: template argument deduction/substitution failed:
prog.cpp:52:37: note: variable-sized array type 'int (*)[n]' is not a valid template argument
return make_pair(mul,make_pair(m,n));
^
prog.cpp: At global scope:
prog.cpp:54:29: error: template argument 2 is invalid
pair<int**,<pair<int,int> > > string2Matrix(string s)
^
prog.cpp: In function 'int string2Matrix(std::string)':
prog.cpp:71:37: error: no matching function for call to 'make_pair(int [5][n], std::pair<int, int>)'
return make_pair(mat,make_pair(5,n));
^
In file included from /usr/include/c++/5/bits/stl_algobase.h:64:0,
from /usr/include/c++/5/bits/char_traits.h:39,
from /usr/include/c++/5/ios:40,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from prog.cpp:1:
/usr/include/c++/5/bits/stl_pair.h:286:5: note: candidate: template<class _T1, class _T2> std::pair<_T1, _T2> std::make_pair(_T1, _T2)
make_pair(_T1 __x, _T2 __y)
^
/usr/include/c++/5/bits/stl_pair.h:286:5: note: template argument deduction/substitution failed:
prog.cpp:71:37: note: variable-sized array type 'int (*)[n]' is not a valid template argument
return make_pair(mat,make_pair(5,n));
^
prog.cpp: At global scope:
prog.cpp:73:29: error: template argument 2 is invalid
pair<int**,<pair<int,int> > > key2Matrix(string key)
^
prog.cpp: In function 'int key2Matrix(std::string)':
prog.cpp:81:9: error: 'l' was not declared in this scope
if(c<l)
^
prog.cpp:82:18: error: 's' was not declared in this scope
mat[i][j] = m[s[c]];
^
prog.cpp:84:14: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
mat[i][j] = "\0";
^
prog.cpp:88:35: error: 'n' was not declared in this scope
return make_pair(mat,make_pair(5,n));
^
prog.cpp: At global scope:
prog.cpp:91:50: error: template argument 2 is invalid
string matrix2String(pair<int**,<pair<int,int> > > x)
^
prog.cpp:91:50: error: template argument 2 is invalid
prog.cpp:91:50: error: template argument 2 is invalid
prog.cpp:92:1: error: expected ',' or ';' before '{' token
{
^