I am not able to compile as this error keeps popping up. I am returning the correct dtype but to no avail. If I paste this code in the next solved section, it compiles and runs without any errors. Its very frustrating to go through this. please help.
Attaching a screenshot