Longest Consecutive Subsequence

I tried to implement the second approach that was explained in this video using a hashmap.
However,I am getting an error that I am not able to bug
Please help me
LINK : https://ide.codingblocks.com/s/331583

Hi @gptradhika1208 you have used max as a variable so in line 20 it cannot be used as a function, so change the variable name in line 13.

Yes,I completely forgot about that. Thankyou

Happy to help! Keep Coding.