I think it will be best to focus on solving the first problem you requested assistance with instead of jumping to a whole new project while you are still failing to compile the first one.
Once you have managed to successfully compile the first sketch, then we can switch to assisting you with this new problem.