prog.cpp: In function ‘int main()’:
prog.cpp:18:3: error: a template declaration cannot appear at block scope
{ template <typename T>
^~~~~~~~
prog.cpp:21:10: error: ‘a’ was not declared in this scope
cintype(a,b);
^
prog.cpp:21:12: error: ‘b’ was not declared in this scope
cintype(a,b);
^
prog.cpp:22:2: error: reference to ‘plus’ is ambiguous
plus(a,b)
^~~~
prog.cpp:7:6: note: candidates are: template<class T> void plus(const T*, const T*)
void plus(const T* num1,const T* num2){
^~~~
In file included from /usr/include/c++/6/string:48:0,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from prog.cpp:1:
/usr/include/c++/6/bits/stl_function.h:147:12: note: template<class _Tp> struct std::plus
struct plus;
^~~~