I just started coding C ++ in NetBeans. I have working code (compiled, works fine) The problem is that the code will show some errors (unable to resolve identifiers).

Why is this happening.? The code is working fine. How can I fix this problem?
prime source
share