Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 8 years ago

Language

Compiler

Options

Author

anonymous

almost 8 years ago

$
prog.cc:4:8: warning: unused parameter 'a' [-Wunused-parameter]
T go(T a, T *b){ T *t; return *t;}
       ^
prog.cc:4:14: warning: unused parameter 'b' [-Wunused-parameter]
T go(T a, T *b){ T *t; return *t;}
             ^
prog.cc:8:5: error: no matching function for call to 'go'
    go(x, &x);
    ^~
prog.cc:4:3: note: candidate template ignored: deduced conflicting types for parameter 'T' ('int' vs. 'const int')
T go(T a, T *b){ T *t; return *t;}
  ^
2 warnings and 1 error generated.
Exit Code:
1