| Problem | sumsumdigit |
|---|---|
| User | Yinnotayl64 |
| Submission Time | 2026-11-02 11:35:03 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sumsumdigit.cpp:6:12: error: size of array ‘dp’ exceeds maximum object size ‘9223372036854775807’
6 | int dp[MAXN];
| ^
sumsumdigit.cpp: In function ‘void precompute()’:
sumsumdigit.cpp:10:9: error: ‘dp’ was not declared in this scope
10 | dp[i] = dp[i / 10] + (i % 10);
| ^~
sumsumdigit.cpp:14:9: error: ‘dp’ was not declared in this scope
14 | dp[i] += dp[i - 1];
| ^~
sumsumdigit.cpp: In function ‘int main()’:
sumsumdigit.cpp:30:17: error: ‘dp’ was not declared in this scope
30 | cout << dp[x] << '\n';
| ^~