Recently i write a block of code:
const int sections = 10; for(int t= 0; t < 5; t++){ int i = pow(sections, 5- t -1); cout << i << en
There must be some broken pow function in the global namespace. Then std::pow is "automatically" used instead in your second example because of ADL.
pow
std::pow
Either that or t is actually a floating-point quantity in your first example, and you're running into rounding errors.
t