/in/foo.cc:5:17: error: array bound is not an integer constant before ']' token
int num1[MAX_LEN] = {0}, num2[MAX_LEN] = {0}, result1[MAX_LEN] = {0}, result2[MAX_LEN] = {0}, finalResult[MAX_LEN] = {0}, temp[MAX_LEN] = {0};
^
/in/foo.cc:5:38: error: array bound is not an integer constant before ']' token
int num1[MAX_LEN] = {0}, num2[MAX_LEN] = {0}, result1[MAX_LEN] = {0}, result2[MAX_LEN] = {0}, finalResult[MAX_LEN] = {0}, temp[MAX_LEN] = {0};
^
/in/foo.cc:5:62: error: array bound is not an integer constant before ']' token
int num1[MAX_LEN] = {0}, num2[MAX_LEN] = {0}, result1[MAX_LEN] = {0}, result2[MAX_LEN] = {0}, finalResult[MAX_LEN] = {0}, temp[MAX_LEN] = {0};
^
/in/foo.cc:5:86: error: array bound is not an integer constant before ']' token
int num1[MAX_LEN] = {0}, num2[MAX_LEN] = {0}, result1[MAX_LEN] = {0}, result2[MAX_LEN] = {0}, finalResult[MAX_LEN] = {0}, temp[MAX_LEN] = {0};
^
/in/foo.cc:5:114: error: array bound is not an integer constant before ']' token
int num1[MAX_LEN] = {0}, num2[MAX_LEN] = {0}, result1[MAX_LEN] = {0}, result2[MAX_LEN] = {0}, finalResult[MAX_LEN] = {0}, temp[MAX_LEN] = {0};
^
/in/foo.cc:5:135: error: array bound is not an integer constant before ']' token
int num1[MAX_LEN] = {0}, num2[MAX_LEN] = {0}, result1[MAX_LEN] = {0}, result2[MAX_LEN] = {0}, finalResult[MAX_LEN] = {0}, temp[MAX_LEN] = {0};
^
/in/foo.cc: In function 'int Power(int, int, int*)':
/in/foo.cc:27:39: error: 'temp' was not declared in this scope
len = Mul(result, len, &x, 1, temp);
^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:41:30: error: 'result1' was not declared in this scope
int len1 = Power(x1, n1, result1);
^~~~~~~
/in/foo.cc:42:30: error: 'result2' was not declared in this scope
int len2 = Power(x2, n2, result2);
^~~~~~~
/in/foo.cc:43:54: error: 'finalResult' was not declared in this scope
int finalLen = Mul(result1, len1, result2, len2, finalResult);
^~~~~~~~~~~