QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#872660#8619. Interactive Casinoucup-team2670#Compile Error//C++235.3kb2025-01-26 03:23:372025-01-26 03:23:37

Details

answer.code: In lambda function:
answer.code:72:25: sorry, unimplemented: capture of variably-modified type ‘ld [(T + 1)][(M + 1)]’ {aka ‘long double [(T + 1)][(M + 1)]’} that is not an N3639 array of runtime bound
   72 |                 return (f[i - 1][max(m - b, 0)] + f[i - 1][min(m + 2 * b, M)]) / 2;
      |                         ^
answer.code:72:25: note: because the array element type ‘ld [(M + 1)]’ {aka ‘long double [(M + 1)]’} has variable size
answer.code:72:51: sorry, unimplemented: capture of variably-modified type ‘ld [(T + 1)][(M + 1)]’ {aka ‘long double [(T + 1)][(M + 1)]’} that is not an N3639 array of runtime bound
   72 |                 return (f[i - 1][max(m - b, 0)] + f[i - 1][min(m + 2 * b, M)]) / 2;
      |                                                   ^
answer.code:72:51: note: because the array element type ‘ld [(M + 1)]’ {aka ‘long double [(M + 1)]’} has variable size