B2098代码:
#include <iostream>
#include <unordered_set>
using namespace std;
unordered_set<int> st;
int main()
{
	ios::sync_with_stdio(false);
	int n;
	cin >> n;
	for (int i = 1; i <= n; i++)
	{
		int x;
		cin >> x;
		st.insert(x);
	}
	unordered_set<int>::iterator it_end = st.begin();
	for (unordered_set<int>::iterator it = st.end(); it != it_end; ++it)
	{
		cout << *it << ' ';
	}
	cout << endl;
	return 0;
}
vs2022 preview 2.0,调试类型:.NET Framework,ISO c++20。样例没有错,但 devc++,64-bit realease,-std=c++14 顺序却反了,20分。