Diashow code not working, full with errors

I did. Fix the problem I identified for you.