Problem sumsumdigit
User xragon
Submission Time 2024-12-11 10:12:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumsumdigit.cpp: In function ‘int main()’:
sumsumdigit.cpp:12:20: error: lvalue required as left operand of assignment
12 | sum = (i%10)/=10;
| ^~
sumsumdigit.cpp: At global scope:
sumsumdigit.cpp:14:2: error: expected declaration before ‘}’ token
14 | }
| ^
sumsumdigit.cpp:15:2: error: ‘cout’ does not name a type
15 | cout << sum;
| ^~~~
sumsumdigit.cpp:16:1: error: expected declaration before ‘}’ token
16 | }
| ^