while compiling ,i confronted a problem in template.
here is the code ,very short.
The codes can be compiled through,however there are warnings .
i was confused by these warnings.
using namespace std;
template <class T>
T &max(T x,int n)
cout<<"max of a is:"<<max(a,6)<<endl;
cout<<"max of b is:"<<max(b,4)<<endl;