WA in CLEANUP

pls help !!
:sob:

Problem Code:[CLEANUP]
language: c++

Please either format your code or (better!) link to your submission - the forum software has mangled it and it won’t compile! :slight_smile:

ok sorry will post link ,thanks!

your code

read m before if condition
if m == 0 set todolist
and if n==0 print two empty line

1 Like

still gives WA :sob:
thanks for ur reply

problem solved thanks a lot for everyone’s help!!
i had forgotten that we should read two integers(n**&**m) even if the first one is zero.
:sweat_smile: