hey I was solving the problem LADDU of DSA series and it seems that when I use char array to store the string for activity variable the output is multiple lines of 0. But as soon as I replace char activity[20];
with string activity;
everything seems to be working fine again. Why does it shows wrong output when I initialize a variable using char array?
https://www.codechef.com/viewsolution/56696042
while you are at it can you also explain what subtasks I failed? and what is that table