I'm not sure what compiler you are using but your code won't work with GCC, you don't have the main function and you don't call any headers