The problem is you are using an outdated version of the Arduino AVR Boards toolchain that does not support the nullptr keyword.
To update the toolchain, do this:
- Tools > Board > Boards Manager
- Wait for download to finish.
- Click on "Arduino AVR Boards".
- Click "Update".
- Wait for update to finish.
- Click "Close".