fork download
void myFunc(T x, T y, T z)
int main()
    short x = 1;
    int y = 2;
    long z = 3;
    myFunc(x, y, z);
Compilation error #stdin compilation error #stdout 0s 0KB
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:12:19: error: no matching function for call to ‘myFunc(short int&, int&, long int&)’
prog.cpp:12:19: note: candidate is:
prog.cpp:2:6: note: template<class T> void myFunc(T, T, T)
prog.cpp:2:6: note:   template argument deduction/substitution failed:
prog.cpp:12:19: note:   deduced conflicting types for parameter ‘T’ (‘short int’ and ‘int’)

Standard output is empty