prog.cpp: In function 'int main()':
prog.cpp:9:52: error: reference to 'plus' is ambiguous
cout<< "сумма "<<i<<" и "<<j<<"равна "<<plus(i,j);
^
prog.cpp:3:5: note: candidates are: template<class T> int plus(T&, T&)
int plus(T &a,T &b);
^
In file included from /usr/include/c++/5/string:48:0,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from prog.cpp:1:
/usr/include/c++/5/bits/stl_function.h:147:12: note: template<class _Tp> struct std::plus
struct plus;
^