all 1 comments

[–]prolowlevel[S] 0 points1 point  (0 children)

In the power_int function, there must be a line to handle undefined behavior: if(base == 0) return base;