I cannot store string in tree

I am working with the code you wrote. But I couldn’t get it to work.

/Users/kaan/Desktop/Cosmic/bos1.C:34:1: error: non-void function does not return a value [-Werror,-Wreturn-type]
root.exe(3608,0x112a9fdc0) malloc: *** error for object 0x7fff682df385: pointer being freed was not allocated
root.exe(3608,0x112a9fdc0) malloc: *** set a breakpoint in malloc_error_break to debug

I think root works and creates the tree file, but I see errors in all the files.