测试编译全通过,为什么是RE?
查看原帖
测试编译全通过,为什么是RE?
355882
王寅泽楼主2020/10/10 19:36
#include <bits/stdc++.h>
using namespace std;
int main()
{
	int i=1,number=0;
	stack<int> a;
	while(i!=0)
	{
		cin >> i;
		a.push(i);
		number++;
	}
	a.pop();
	if(!a.empty())
	{
		for(int x=0;x<number;x++)
		{
			cout << a.top() << " ";
			a.pop();
		}
	}
	return 0;
}

求助大佬,萌萌哒~~(此处非卖萌)~~。

2020/10/10 19:36
加载中...