Problem sumsumdigit
User CKCodeBreaker55
Submission Time 2024-12-12 14:29:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumsumdigit.cpp: In function ‘int main()’:
sumsumdigit.cpp:8:10: error: ‘MAXN’ was not declared in this scope
8 | int ans[MAXN+1];
| ^~~~
sumsumdigit.cpp:9:2: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
9 | ans[0] = 0;
| ^~~
| abs
sumsumdigit.cpp:11:24: error: ‘f’ was not declared in this scope
11 | ans[i] += ans[i-1] + f(i);
| ^
sumsumdigit.cpp:14:21: error: ‘q’ was not declared in this scope
14 | for(int i = 0; i < q; i++){
| ^