I am gonna create adjacency list and insert note and edge. I have to check if the node exists before inserting a new node. If yes, it will print ExitedNode. However, there is error in the last code of my insert method which is "incompatible type in assignment of char to char[100]". I dont know how to coorect it meanwhile does my logic of whole insert method correct?
There is something wrong about the declaration of the parameter, I think.
Line 16. I think char n[100] should read char[] n or char n[] without the size. Or probably better char *n, but n is hardly a good name for a string.
You have some other names which I think are poorly chosen, like a list called g..
Please go back and indent your code carefully; you have too many }s at the extreme left of the page, some of which should be farther to the right. That makes it hard to follow the flow of execution, particularly near line 40. Is line 41 supposed to be in the else or not?