Navx2-mxp C++ code Auto-balance

Hello! This is our first year with using the Navx2-mxp. We don’t know how to set up the programming side of things, we want it to self level. Could anyone please help? We also tried importing example code and it still doesn’t work as it shows more error messages when we import it. Thanks! Below is a snippet of us trying to import the balance code.

Could you please share a link to the repository? If you have include errors they are going to be higher up