Flecs is currently undergoing a major version upgrade and as part of this the examples are being rewritten! Check back in later for the new examples, or go to the C++ examples from the last v2 release:
https://github.com/SanderMertens/flecs/tree/v2.4.6/examples/c