记录详情

Compile Error

/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);
                                                      ^~~~~~~~~~~

信息

递交者
类型
自测
题目
A11-4 高精度整数之间的乘法
语言
C++
递交时间
2024-10-13 14:56:24
评测时间
2024-10-13 14:56:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes