1.没有导入命名空间
2.代码很乱
3.最后一个for循环定义错误
4.{ }加了跟没加一样
就这样
AC CODE
```cpp
#include<stdio.h>
#include<iostream>
using namespace std;//额这
int main()
{
long long arr[100];//有句老话....
long long j,i,a,c;
for(i=0;i<=100;i++){
cin>>arr[i];
if(arr[i]==0){
c=i-1;
break;
}
}
for(j=c;j>=0;j--){//c=j错了!
a=arr[j];
cout<<a<<" ";//空格!!!!!!!!!!!!!!
}
return 0;
}
```
@[chengwenhao](/user/1184968)
by lan_chance @ 2023-11-09 23:07:23
谢谢
by chengwenhao @ 2023-11-10 12:09:11