Creating a simple object in UE4 C++ code does not work

I’m trying to implement a certain algorithm. What method would you recommend? Thank you