```
void solve() { // Add your code here int n; cin >> n; vector<int> v(n); for (int i = 0; i < n; i++) cin >> v[i]; map<int, int> m; for (int i = 0; i < n; i++) { if (m.find(v[i]) == m.end()) { cout << v[i] << " "; } m[v[i]]++; } }
Login before adding your answer.