Syntax error when recoding EPANET

Hello everyone,
I am trying to use EPANET in agricultural irrigation network design, and I am going to use the source code to do some recoding. But when I attached the source code to VisualStudio 2022, there will be lots of syntax errors. I think it may be due to the version of the compiler​, so I want to know the version of the compiler when the code was successfully compiled.

I will be appreciated it if anyone can give me some guidance!

Hi @yt.liu,
I think if you present your message errors, people could help you better. Anyway, I can help you in Matlab language if you apply it to your code.
Good luck

Hello @yt.liu
I recommend you to work with the 2019 version.