Wrong answer of assignment

my code is running well but it is showing wrong answer
code - https://ide.codingblocks.com/s/139576
problem - https://online.codingblocks.com/app/player/43644/content/19478/4820

check for this input
2
9 9
3
9 9 9

i am not able to code the solution

u only have to think of an extra 1
when bothn of the array are finished and u still have a carry left
just dry run for this case
if any problem exist reply i will share the code

yes i figured that i out that i am not able to adjust the carry in 0th index … but i am not able to code that please share the code with explanation.
thank you

check this


check lie 35
hope this help

no , this is also showing wrong answer

there is also a space after every comma just add it

now it is showing wrong answer for two test cases

Send me the code u submitted

bro line 35 jaha 1 cout kara h uske baad bhi space aayega

1 Like