+2
−1
+2
−1
+1
−1
+2
−2
+2
−1
Loading
The return type of this function is a boolean value, and even uses a bool internally, so use bool in the function declaration as well as the variables that store the return value, to avoid any confusion.