#include giving me errors

Then you are missing the setup() and loop() functions? Do you know what is the minimum code for an Arduino sketch?

To autoformat the code, place the cursor anywhere in the code and hit ctrl-T (Windows) or go to the Tools menu and choose Auto Format. That will indent the code in a standard manner making the code much easier to read and follow.

Is your board a MKR and Nano IOT 33 board?