Quote:the code does not get build
Means very little to us without actual error messages ... and we can't see your screen, we have no idea what compiler you are using, we can't read your mind!
But ... "%lf" as a
format expects a pointer to a
- so some compilers will complain. I'd suggest changing "float" to "double" throughout.
And you haven't declared your functions before you try to call them - and all compilers will complain about that! See here: Forward declaration - Wikipedia
Do yourself a favour: look at error messages and try to work out what you did wrong from that - they tell you the line number (at the very least) that the problem was discovered on. Learning to do this yourself will save you a huge amount of time for very little effort - you will be getting compiler errors for a very, very long time! (I've be writing software for over 40 years, and I still get them!)
Relying on others to fix them for you will take considerably longer than doing it yourself, as nobody is going to respond immediately ....