Using platformIO to compile marlin and getting “error 1”

This is my first time trying something like this and I followed a video guide for it but when I do what they do and I try to build it, I get error 1, I then tried to revert all my changes and i still get those errors

There is no way we can help you without details. Please post a full screenshot of VSCode with the visible, your platformio.ini and your src/main.cpp source code.