#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
#include int main( ){int c;cout
运行vc++时 #include int main() { cout
#include using namespace std; int main() { cout
实在看不懂#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std;int cases;int main() {double cl = clock();scanf(%d,
C++有道题看不懂,#include int func(int a,int b);int main(){cout
C++计算阶乘n#include #include #include #include using namespace std;int main(){int sum = 1,d;int n;cin >> n;for(int i=1;i
#include void main( ) { int k=-3; if (k
#include main() { int x=0; while(x++
#include stdio.h main() { int A,B,C; while (A
sales_item是什么#include #include sales_item.husing namespace std;int main (){sales_item book;cin >> book;cout
#include #include main() { int x,y; float m; for(x=0;x
c++分解质因数过程#include using namespace std;int main(){int n,c;coutn,c;cout
#include int main(){int i,j,k;for (i=0;i
#include int main(){ int x=0,y=0; while(x
#include void main() { int i;int sum=0; for(i=1;i
#include void main(){int a[30];int i;for (i=0,i
#include main( ) { int k,sum=0 int count=0 for(k=1;k
#include #include int main() { int x,y,sqrt; scanf (%d,&x); y=sqrt(x); if (x>