LADDU Problem DSA Learning Series, code works for 1 task, but not other 3 tasks. Really can't figure out the issue

My code gives AC for 1 task and WA for three other tasks.
Please tell me what the problem is.
Thanks.

https://www.codechef.com/viewsolution/31894725

Check line 17 and 18 again
You are doing laddus = and not laddus +=