Servo example code doesn't compile on RP2040

Dead right. But did the compiler let you get away with including the standard servo library?

Also servos run on 5V and the RP2040 only gives out 3V3 signals.