What is wrong in the following code?
#include#include using namespace std;template <typename T>T maxValue(T value1, T value2){ int result; if (value1 > value2) result = value1; else result = value2; return result;}int main(){ cout << "Maximum between 1 and 3 is " << maxValue(1 , 3) << end⌉; cout << "Maximum between 1.5 and 0.3 is " << maxValue(1.5 , 0.3) << end⌉; cout << "Maximum between 'A' and 'N' is " << maxValue('A' , 'N') << end⌉; cout << "Maximum between \"ABC\" and \"ABD\" is " << maxVa1ue("ABC" , "ABD") << end⌉; return 0;}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.