Problem while compling a WS2811 LED with ESP32

My suggestion was to try an example file that most likely came with the library. Use the example to verify the hardware and library are working.

From that point you can start to add you custom code, one function at at time.

From what others have noticed, your program structure in not complete. Assuming you copied the code from elsewhere, you should go back to that resource and recopy the code.