0_0_36646056_25249.cpp:17:25: error: 'V' does not name a type
inline void merge(const V&A,const V&B,V&C)
^
0_0_36646056_25249.cpp:17:35: error: 'V' does not name a type
inline void merge(const V&A,const V&B,V&C)
^
0_0_36646056_25249.cpp:17:39: error: 'V' has not been declared
inline void merge(const V&A,const V&B,V&C)
^
0_0_36646056_25249.cpp: In function 'void merge(const int&, const int&, int&)':
0_0_36646056_25249.cpp:20:12: error: request for member 'size' in 'A', which is of non-class type 'const int'
int ca=A.size(),i=0;
^
0_0_36646056_25249.cpp:21:12: error: request for member 'size' in 'B', which is of non-class type 'const int'
int cb=B.size(),j=0;
^
0_0_36646056_25249.cpp:23:9: error: 'i' was not declared in this scope
while(i<ca&&j<cb)
^
0_0_36646056_25249.cpp:23:15: error: 'j' was not declared in this scope
while(i<ca&&j<cb)
^
0_0_36646056_25249.cpp:25:9: error: 'i' was not declared in this scope
while(i<ca)ext(A[i++]);
^
0_0_36646056_25249.cpp:26:9: error: 'j' was not declared in this scope
while(j<cb)ext(B[j++]);
^
0_0_36646056_25249.cpp:28:5: error: request for member 'resize' in 'C', which is of non-class type 'int'
C.resize(m);
^
0_0_36646056_25249.cpp:29:7: error: 'i' was not declared in this scope
for(i=0;i<m;i++)
^
0_0_36646056_25249.cpp: In function 'int main()':
0_0_36646056_25249.cpp:53:47: error: no matching function for call to 'merge(std::vector<std::pair<int, int> >&, std::vector<std::pair<int, int> >&, std::vector<std::pair<int, int> >&)'
else merge(f[i-1][j],f[i][j-1],f[i][j]);
^
0_0_36646056_25249.cpp:53:47: note: candidates are:
0_0_36646056_25249.cpp:17:13: note: void merge(const int&, const int&, int&)
inline void merge(const V&A,const V&B,V&C)
^
0_0_36646056_25249.cpp:17:13: note: no known conversion for argument 1 from 'std::vector<std::pair<int, int> >' to 'const int&'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_36646056_25249.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4814:5: note: template<class _IIter1, class _IIter2, class _OIter, class _Compare> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare)
merge(_InputIterator1 __first1, _InputIterator1 __last1,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4814:5: note: template argument deduction/substitution failed:
0_0_36646056_25249.cpp:53:47: note: candidate expects 6 arguments, 3 provided
else merge(f[i-1][j],f[i][j-1],f[i][j]);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_36646056_25249.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4766:5: note: template<class _IIter1, class _IIter2, class _OIter> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter)
merge(_InputIterator1 __first1, _InputIterator1 __last1,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4766:5: note: template argument deduction/substitution failed:
0_0_36646056_25249.cpp:53:47: note: candidate expects 5 arguments, 3 provided
else merge(f[i-1][j],f[i][j-1],f[i][j]);
^
0_0_36646056_25249.cpp:62:9: error: 'i' was not declared in this scope
for(i=0;i<f[n][n].size();i++)
^
|