When I compile this, the error that I keep getting back is
'temp' may be used uninitialized in this function *temp=next[I];
and when I run it, it gives me segmentation fault (core dump).

I am...