Problem ping
User bensonlzl
Submission Time 2022-12-22 22:20:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ping.cpp: In instantiation of ‘struct fib<-799, 100, 100>’:
ping.cpp:6:26: recursively required from ‘struct fib<99, 100, 100>’
ping.cpp:6:26: required from ‘struct fib<100, 100, 100>’
ping.cpp:55:25: required from here
ping.cpp:6:26: fatal error: template instantiation depth exceeds maximum of 900 (use ‘-ftemplate-depth=’ to increase the maximum)
6 | enum { value = ((N > 0 ? fib<N-1,M,X>::value : 0) + (M > 0 ? fib<N,M-1,X>::value : 0) + (X > 0 ? fib<N,M,X-1>::value : 0)) % 10 };
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.