Problem | sumsumdigit |
---|---|
User | xragon |
Submission Time | 2024-12-11 10:11:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumsumdigit.cpp: In function ‘int main()’:
sumsumdigit.cpp:12:10: error: ‘num’ was not declared in this scope; did you mean ‘sum’?
12 | while (num > 0) {
| ^~~
| sum
sumsumdigit.cpp:13:13: error: ‘number’ was not declared in this scope
13 | sum = (number%10)/=10;
| ^~~~~~
sumsumdigit.cpp: At global scope:
sumsumdigit.cpp:16:2: error: ‘cout’ does not name a type
16 | cout << sum;
| ^~~~
sumsumdigit.cpp:17:1: error: expected declaration before ‘}’ token
17 | }
| ^