关于realease和debug
  • 板块学术版
  • 楼主happybob
  • 当前回复20
  • 已保存回复20
  • 发布时间2021/7/16 13:04
  • 上次更新2023/11/4 14:39:49
查看原帖
关于realease和debug
332914
happybob楼主2021/7/16 13:04

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 FrameworkISO c++20。样例没有错,但 devc++64-bit realease-std=c++14 顺序却反了,20分。

2021/7/16 13:04
加载中...