求大佬答疑解惑,为什么会有四个WA
查看原帖
求大佬答疑解惑,为什么会有四个WA
857829
Wsx2512楼主2022/11/12 17:24
#include<bits/stdc++.h>
using namespace std;
int main()
{ 
int i;
int m;
int j;
  int a[200]; 
  for(m=0;;m++)
  {
  	scanf("%d",&a[m]);
  if(a[m]==0)
  break;
  }
  for(j=(m-1);j>=0;j--)
  {
  	printf("%d ",a[j]);
  }
  return 0;
} 

2022/11/12 17:24
加载中...