Why char[0] or '\0' is showing weird symbols in this problem?

Revision en2, by Loser_, 2020-05-04 17:01:05

Hello I have been trying to solve this problem using basic star pattern logic. My approach is — first create the upper half of the pyramid and then add the next portion of the pyramid.For that I first initialize all the elements of the 2d array in null value**('\0')**.And my compiler shows the exact same result as in the description.But somehow codeforces compiler showing weird symbols for ('\0') .I have also tried char(0) which also give me weird symbols.My submissions here and here.How can I get ac from this submission?

Tags #c++

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Loser_ 2020-05-04 17:01:05 12
en1 English Loser_ 2020-05-04 16:59:56 756 Initial revision (published)