Thanks Alberto, it works!
I’m new to ROOT and I’ve also started to coding in C++ very recently, so forgive me if this question sounds trivial.
In my case, VScode shows 12 problems detected because it cannot open the source files included in the script:
Does anyone know how to fix this?