Those are HLSL (the Direct3D shader language) types. Those types won't compile in a C or C++ compiler. If you're trying to to do the distortion in a shader, then you need to be sending the shader source to the D3D shader compiler.
If you're trying to do the distortion outside of a shader, then you need to use a math library such as GLM to contain the vector types and do the math.