template<unsigned int n>struct Factorial { enum { value = n * Factorial<n-1>::value};}; template<>struct Factorial<0> { enum {value = 1};}; template<int x> struct _;int main() { _<Factorial<10>::value> __; return 0;}
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:14:32: error: aggregate ‘_<3628800> __’ has incomplete type and cannot be defined _<Factorial<10>::value> __; ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!