Problem snakecode
User jeongwonho64
Submission Time 2022-12-23 12:06:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snakecode.cpp: In function ‘double query(int, int, int)’:
snakecode.cpp:28:52: error: ‘a’ was not declared in this scope
28 | double ans = (dp[T]/dp[S-1])*(double)A + add[T] - a*add[S-1];
| ^