>>273
scanf("%s", &num); --> scanf("%s", num); & をトル
if(num[i] == 'j') --> if(num[i] = j + '0') 'j' という文字と比べてどうすんの

以上。