求知道编译错在哪
查看原帖
求知道编译错在哪
1012241
Dcchen楼主2023/11/18 17:54
#include<set>
#include<iostream>
using namespace std;
set<int> s;
int T,n,x;
int main(){
	ios::sync_with_stdio(0);
	cin>>T;
	while(T--){
		cin>>n;
		while(n--){
			cin>>x;
		    s.insert(x);
		}	
		for(auto i:s)cout<<i<<" ";
		s.clear;
	}
	
	return 0;
}
2023/11/18 17:54
加载中...