Help with checking

code: https://ide.codingblocks.com/

problem: topological sort (https://leetcode.com/problems/course-schedule/)

what is causing the compliation error?

I think one of the mistake is in line 39 if condition what is the correct way to handle that case

kindly help several of my last few doubts have not been responded to