read link and sublist data

scanf("%d %d",&link,&subptr);