#include<vector>
#include<iostream>
#include<algorithm>
struct Pair
{
int Key;
float Value;
bool operator<(const Pair& vp) { return (*this).Key < vp.Key;};
bool operator==(const Pair& vp) { return (*this).Key==vp.Key;}
};
int main(int, char**)
{
std::vector<Pair> vec;
Pair t;
t.Key = 12; t.Value = 0.12;
vec.push_back(t);
t.Key = 123; t.Value = 0.123;
vec.push_back(t);
t.Key = 12; t.Value = 0.12;
vec.push_back(t);
t.Key = 2; t.Value = 0.2;
vec.push_back(t);
t.Key = 222; t.Value = 0.222;
vec.push_back(t);
t.Key = 2; t.Value = 0.2;
vec.push_back(t);
t.Key = 102; t.Value = 0.102;
vec.push_back(t);
t.Key = 102; t.Value = 0.102;
vec.push_bac