induces the error “Use of undeclared identifier”. This happens for all Mbed OS from 6.5 to 6.13. What’s the problem? The heap statistics example works fine.
The MbedOS version does not depend on the Online compiler but on a link what is in imported source.
How you can see here it is MbedOS 6.0.0 (see commint date from 21 may 2020 and URL address), so it is same one as in MbedStudio after import.
I tried it again with MbedStudio(1.4.1 & Arm Compiler 6 , MbedOS (6.12 & 6.14), with Nucleo-F746ZG as target and again no errors.