From the ChatGPT
In C++, rint is a function from the cmath library that returns the nearest integer value to a given floating-point number, using rounding towards the nearest even number in case of tie.
On the other hand, round is a function that also rounds a floating-point number to the nearest integer value, but it is part of the cmath library only starting from C++11. In earlier versions of C++, round is not available.
So, if you are using C++11 or later, you can use round instead of rint for rounding to the nearest integer value.
Please refer to banker's round
Sample Code: https://onlinegdb.com/q36smlQMz