I can't find the error.When I was running it, it basically sidesteps this fgets(a,n,stdin) and directly executes line 30-string is not...
Separate names with a comma.