Collect2.exe: error: ld returned 1 exit status * [.pio\build\uno\firmware.elf] Error 1

Please use pre-formatted text for code and logs. Otherwise this is very difficult to read.

What is your folder and file structure? In which file is your source code?