Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include "func_e.h"
- using std::cin; using std::cout;
- using std::vector; using std::string;
- using std::endl;
- int main() {
- int a[(int)1e4];
- size_t n; cin >> n;
- for (int i = 0; i < n; ++i)
- cin >> a[i];
- unique(a, &n);
- for (int i = 0; i < n-1; ++i)
- std::cout << a[i] << ' ';
- std::cout << a[n-1] << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement