null pointer assignmentif(a%i==0) { n++; s=s-i; k[n]=i; /*數組k[11]太小了,這裡n可能大於10,造成數組越界*/ } ... ...
zhidao.baidu.com