```c++
#include<bits/stdc++.h>
using namespace std;
int main(){
long long a[101],cnt=0;
while(1){
cnt++;
cin>>a[cnt];
if(a[cnt]==0){
break;
}
}
for(int i=cnt-1;i>=1;i--){
cout<<a[i]<<" ";
}
return 0;
}
```
输出那块有问题
by SICKO @ 2023-12-17 18:00:19
@[not_much](/user/1189340) 输出 i-- 写成 i++ 了。
by xiaoshumiao @ 2023-12-17 18:07:17
@[xiaoshumiao](/user/1008513) 现在是wa了
by not_much @ 2023-12-17 18:12:27
@[xiaoshumiao](/user/1008513) 好了,AC了
by not_much @ 2023-12-17 18:13:39
@[SICKO](/user/153679) 已AC
by not_much @ 2023-12-17 18:13:55