ignoring return value of ‘scanf’, declared with attribute warn_unused_result
#includeintmain(intargc,constchar*argv[]){intk;scanf("%d",&k);intarr[k];for(inti=0;imaxSum){maxSum=sum;}elseif(sumintmain(){intk;if(scanf("%d",&k)!=1){printf("请输入整数!");}intarr[k];for(inti=0;imaxSum){m