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

Правка en1, от Loser_, 2020-05-04 16:59:56

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?

Теги #c++

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Loser_ 2020-05-04 17:01:05 12
en1 Английский Loser_ 2020-05-04 16:59:56 756 Initial revision (published)