[ create a new paste ] login | about

Link: http://codepad.org/z9Qqe8dV    [ raw code | output | fork ]

C++, pasted on Jun 21:
1
2
3
4
5
6
7
8
9
template < typename T >
T min( T a, T b )
{
  return a < b ? a : b;
}
void main ()
{
    int c = min <int> (1, 2);
}


Output:
1
2
Line 6: error: '::main' must return 'int'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: