Problem sumsumdigit
User hyishigh
Submission Time 2024-12-11 09:36:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumsumdigit.cpp: In function ‘int main()’:
sumsumdigit.cpp:12:10: error: request for member ‘size’ in ‘n’, which is of non-class type ‘long long int’
12 | n = n.size();
| ^~~~
sumsumdigit.cpp:14:12: error: invalid types ‘long long int[long long int]’ for array subscript
14 | p = n[i];
| ^
sumsumdigit.cpp:20:1: error: expected ‘}’ at end of input
20 | }
| ^
sumsumdigit.cpp:4:15: note: to match this ‘{’
4 | signed main() {
| ^