Array size as a logarithm-Collection of common programming errors
even though you use the const qualifier for SIZE, this only means you have a read-only variable, and it’s value will not be known at compile time. Because of the function calls ceil, log10, pow the value of SIZE will only be know at runtime so the compiler cannot statically allocate SIZE bytes because SIZE it know yet known.
So, either dynamically allocate memory or compute the value yourself 🙂