Keep getting this error when uploading

Compilation failed
Command C:\Users\taran\AppData\Local\Programs\XOD IDE\resources\arduino-cli.exe --config-file=C:\Users\taran\AppData\Local\Temp\arduino-cliPhNTZ9\.cli-config.yml compile --fqbn arduino:avr:uno --verbose C:\Users\taran\AppData\Local\Temp\xod_temp_sketchbookJfbjR2\xod_1551833061939_sketch failed with code 1
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

Try generation the C++ code, open the Arduino IDE, paste the code there and see what errors you get.

1 Like

link to code is:
https://pastebin.com/Pi6zQTGv