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

Compile Error

sumsumdigit.cpp: In function ‘int main()’:
sumsumdigit.cpp:8:2: error: expected ‘,’ or ‘;’ before ‘ios_base’
8 | ios_base::sync_with_stdio(0); cin.tie(0);
| ^~~~~~~~
sumsumdigit.cpp:12:24: error: ‘f’ was not declared in this scope
12 | ans[i] += ans[i-1] + f(i);
| ^
sumsumdigit.cpp:15:21: error: ‘q’ was not declared in this scope
15 | for(int i = 0; i < q; i++){
| ^