#include int main() { int a[100]; int n,i,j,k,t,m; scanf("%d %d\n",&m,&n);#includeint main(){int a[100];int n,i,j,k,t,m;scanf("%d %d\n",&m,&n);scanf("%d",&a[i]);for(i=0;i

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 03:28:00

#include int main() { int a[100]; int n,i,j,k,t,m; scanf("%d %d\n",&m,&n);#includeint main(){int a[100];int n,i,j,k,t,m;scanf("%d %d\n",&m,&n);scanf("%d",&a[i]);for(i=0;i
#include int main() { int a[100]; int n,i,j,k,t,m; scanf("%d %d\n",&m,&n);
#include
int main()
{
int a[100];
int n,i,j,k,t,m;
scanf("%d %d\n",&m,&n);
scanf("%d",&a[i]);
for(i=0;i

#include int main() { int a[100]; int n,i,j,k,t,m; scanf("%d %d\n",&m,&n);#includeint main(){int a[100];int n,i,j,k,t,m;scanf("%d %d\n",&m,&n);scanf("%d",&a[i]);for(i=0;i
你这第一次i就没有初始化,是个随机数那么你输入
scanf("%d",&a[i]);肯定都越界了
,而且,还有逻辑错误,你那个i--真的一大逻辑错误啊,你那i越减小,使得
for(i=0;i