I said it was a non-standard way of dividing an integer by 4. The standard way is to use the / operator. And it is off topic as you well understand. Highly entertaining and amusing, but of no benefit to the OP.
You can use the C++ Standard Library <cmath> and the function sqrt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//You can use "usign namespace std" instead of...
return 0; //indicate successful termination