Getting run erraor
hi @Jun18APP0112, you wrote a very nice code , but with a very small mistake
at line 41 of your code you have :-
if(curr->children[i]!=NULL) . but you have not initialized children[i] with NULL values
so instead this you can do :-
if(curr->children.count(i)==1)
corrected code :-
In case of any doubt feel free to ask 
Mark your doubt as RESOLVED if you got the answer