#include "pico/stdlib.h" causes errors

Careful - that’s a different Arduino core.

On the PlatformIO side there are currently 3 platforms that support programming the Pico. A platform is basically a set of board definitions and Python logic to build particular frameworks or enable specific features:

Since you seem to be wanting to work with Earle Philhower’s Arduino core (which incidentally also supports programming against the raw Pico SDK), you should take a look at the example project GitHub - maxgerhardt/pio-pico-core-earlephilhower-test: Test firmware that uses the earlephilhower Arduino core.. The standard Multicore.ino code works just fine with it.