猿问

运行停止是为什么啊,感觉没什么问题啊,求大佬告知

#include <stdio.h>

int findmin(int a[],int n)

{

int min;

for(int i=0;i<n;i++)

{

if(a[i]<=a[i+1])

{

min=a[i];

}else min=a[i+1];

}

return min;

}//找到最小数



int Deletemin(int a[],int n)

{

for(int i=0;i<n;i++)

{

if(a[i]==findmin(a,n))

break;

}

for(i;i<n;i++)

a[i]=a[i+1];

return a[100];

}//删除最小数


int main()

{

int n;

int a[100]={0};

printf("输入一个正整数n:(n<=100)");

scanf("%d",&n);

printf("输入一个长度为n的数组:");

for(int i=0;i<n;i++)

scanf("%d",&a[i]);

findmin(a,n);

Deletemin(a,n);

printf("%s",a[100]);

return 0;

}


qq_狼噬夜魇_0
浏览 1034回答 1
1回答

慕设计2395807

ENCYHXGDFBRRUXAJFPYADMBEYOXGJFBKNKGOLNWMPLOCFIYNDFVYZPEXZCSIJFVRHXSVKHQZIXHXGZPXAKFCFULSDMGCMVEUQZCEAJFBKNJFIXJMVENJZBKBREHJTIRUEAIKFVKGQZOLUJTQZOLAJTILODXNJSVLTWSVRZIEBDGIXHDMJEGCYODMIYOIFHDNQSIRGODFVFUPLUDNCFHQAJFBXHKNVEUDTPSIKTBFIKAQTJLUESPLODZWEBEZWVKNWSIEGCFOYUWMADGVFORMOXMCZPXNDMOOYOWGJEOKBDMVPZBRUJGVTCLOKTJSHXHQMBLUEGVYBKMBXUDGWYTJRGDEOQTWLOKHWYHRAWZILHIADLBYGWZVYHLODNPSBEBWZLTCYIRNJSPZSILHQMJYBSVUJFIKNJSIYUZJRODZPYORHJZORZCSOXHDHQZCEGCLOQGYHQTIYUDZCZGCRHKMVLHKUQZORNPFBXNDUQSIXUJFPEUNWSPXNJMPLUHQYUQMCLHQGJLHDAPLBXGWJFHDNWLOQADFAQMIRHORNKENQNPXTISPLQYADNPYUQMWOKFILHKZCLOFHJMVRAOKNDAQMCLHDGVLVNWYURGWSHPZKSILNXMVSPFKUCZBRAPSIXYUWGPYAQFVFHDYTCZOXGQZFIXAQSVLAIYFAWZIENXGILRUJZURUUROXCXGWYOXTDSIKZOEAJSIEBRUQTPRUJMUWBJZURMCRUDZWDGPWFVYNQMJNWMCKNPFIFMDZHEMURGWSCCKMJSBRACSVISNQZILODACWYOQTJSUKJRWFNKAVLBKTDZNVFHDTVYHKCKHDFIFUXUQFBXTVEZIRODGBXYOXNQSBEIQGVQTPLORAGIRFOXHWMPR
随时随地看视频慕课网APP
我要回答