Error on drawing from a simple ntuple and some beginner questions

I followed what was done here except I avoid using a pointer: