Problem eescapism
User totallykaiyuan
Submission Time 2026-05-03 16:21:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eescapism.cpp: In function ‘int main()’:
eescapism.cpp:32:22: error: ‘d’ was not declared in this scope
32 | ans = (ans + d[i] % MOD * (i + 1)) % MOD;
| ^
eescapism.cpp: At global scope:
eescapism.cpp:57:11: error: redefinition of ‘long long int MOD’
57 | long long MOD = 1e9 + 7;
| ^~~
eescapism.cpp:17:11: note: ‘long long int MOD’ previously defined here
17 | long long MOD = 1e9 + 7;
| ^~~
eescapism.cpp:59:5: error: redefinition of ‘int main()’
59 | int main() {
| ^~~~
eescapism.cpp:19:5: note: ‘int main()’ previously defined here
19 | int main() {
| ^~~~
eescapism.cpp: In function ‘int main()’:
eescapism.cpp:72:22: error: ‘d’ was not declared in this scope
72 | ans = (ans + d[i] % MOD * (i + 1)) % MOD;
| ^