What will be printed as a result of the following code execution?
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
using namespace std;

int main() {
   int Arr[] = {1,2,3,1,2,3};
   vector<int> Vec(Arr, Arr+(sizeof(Arr)/sizeof(Arr[0])));
   sort(Vec.begin(), Vec.end());
   unique_copy(Vec.begin(), Vec.end(), ostream_iterator<int>(cout, " "));
   return 0;
}

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты