Problem | sumsumdigit |
---|---|
User | jerrielchangjiebin |
Submission Time | 2024-12-11 09:25:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumsumdigit.cpp: In function ‘int main()’:
sumsumdigit.cpp:18:17: error: ‘a’ was not declared in this scope
18 | for (int arr : a) {
| ^
sumsumdigit.cpp:21:8: error: ‘r’ was not declared in this scope
21 | r=a%10; //9
| ^
sumsumdigit.cpp:23:8: error: ‘var’ was not declared in this scope
23 | var valAsString = a.toString();
| ^~~
sumsumdigit.cpp:24:12: error: ‘valAsString’ was not declared in this scope
24 | if (valAsString.length === 1) {
| ^~~~~~~~~~~
sumsumdigit.cpp:24:33: error: expected primary-expression before ‘=’ token
24 | if (valAsString.length === 1) {
| ^
sumsumdigit.cpp:25:14: error: expected ‘;’ before ‘}’ token
25 | break
| ^
| ;
26 | }
| ~
sumsumdigit.cpp:29:2: error: expected ‘}’ at e