Update student_func.cu

fixed improper declaration of dynamic shared memory.