#include <iostream>
#include <vector>
using namespace std;
void swap(float* x, float *y)
{
float z = *x;
*x = *y;
*y = z;
}
int main()
{
vector<float> t = { 3., 2., 1. };
swap(&t[0], &t[2]);
cout << t[1];
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKdm9pZCBzd2FwKGZsb2F0KiB4LCBmbG9hdCAqeSkgCnsKICAgIGZsb2F0IHogPSAqeDsKICAgICp4ID0gKnk7CiAgICAqeSA9IHo7Cn0KCmludCBtYWluKCkKewogICAgdmVjdG9yPGZsb2F0PiB0ID0geyAzLiwgMi4sIDEuIH07CgogICAgc3dhcCgmdFswXSwgJnRbMl0pOwogICAgY291dCA8PCB0WzFdOwp9Cgo=