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

Compile Error

sumsumdigit.cpp: In function ‘int main()’:
sumsumdigit.cpp:13:20: error: lvalue required as left operand of assignment
13 | sum = (i%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 | }
| ^