0_0_22484402_1355.cpp:30:3: error: 'array' does not name a type
array< short, digit > integer;
^
0_0_22484402_1355.cpp: In constructor 'HugeInt::HugeInt(long long int)':
0_0_22484402_1355.cpp:35:19: error: 'integer' was not declared in this scope
for ( short& e : integer ) e=0;
^
0_0_22484402_1355.cpp:38:3: error: 'integer' was not declared in this scope
integer[0] = -1;
^
0_0_22484402_1355.cpp:41:7: error: 'integer' was not declared in this scope
else integer[0] = 1;
^
0_0_22484402_1355.cpp:44:3: error: 'integer' was not declared in this scope
integer[i] = number % 10;
^
0_0_22484402_1355.cpp: In constructor 'HugeInt::HugeInt(char*)':
0_0_22484402_1355.cpp:51:19: error: 'integer' was not declared in this scope
for ( short& e : integer ) e = 0;
^
0_0_22484402_1355.cpp:55:3: error: 'integer' was not declared in this scope
integer[0] = -1;
^
0_0_22484402_1355.cpp:58:7: error: 'integer' was not declared in this scope
else integer[0] = 1;
^
0_0_22484402_1355.cpp:62:3: error: 'integer' was not declared in this scope
integer[i]=number[j]-'0';
^
0_0_22484402_1355.cpp: In function 'std::ostream& operator<<(std::ostream&, const HugeInt&)':
0_0_22484402_1355.cpp:68:11: error: 'const class HugeInt' has no member named 'integer'
if ( num.integer[0] < 0 )
^
0_0_22484402_1355.cpp:73:31: error: 'const class HugeInt' has no member named 'integer'
while ( i < num.digit && num.integer[i] == 0 ) i++;
^
0_0_22484402_1355.cpp:75:41: error: 'const class HugeInt' has no member named 'integer'
for ( ; i < num.digit; i++ ) os << num.integer[i];
^
0_0_22484402_1355.cpp: In function 'bool operator==(const HugeInt&, const HugeInt&)':
0_0_22484402_1355.cpp:80:11: error: 'const class HugeInt' has no member named 'integer'
return A.integer == B.integer;
^
0_0_22484402_1355.cpp:80:24: error: 'const class HugeInt' has no member named 'integer'
return A.integer == B.integer;
^
0_0_22484402_1355.cpp: In function 'bool operator!=(const HugeInt&, const HugeInt&)':
0_0_22484402_1355.cpp:85:11: error: 'const class HugeInt' has no member named 'integer'
return A.integer != B.integer;
^
0_0_22484402_1355.cpp:85:24: error: 'const class HugeInt' has no member named 'integer'
return A.integer != B.integer;
^
0_0_22484402_1355.cpp: In function 'bool operator<(const HugeInt&, const HugeInt&)':
0_0_22484402_1355.cpp:90:11: error: 'const class HugeInt' has no member named 'integer'
return A.integer < B.integer;
^
0_0_22484402_1355.cpp:90:23: error: 'const class HugeInt' has no member named 'integer'
return A.integer < B.integer;
^
0_0_22484402_1355.cpp: In function 'bool operator>(const HugeInt&, const HugeInt&)':
0_0_22484402_1355.cpp:95:11: error: 'const class HugeInt' has no member named 'integer'
return A.integer > B.integer;
^
0_0_22484402_1355.cpp:95:23: error: 'const class HugeInt' has no member named 'integer'
return A.integer > B.integer;
^
0_0_22484402_1355.cpp: In function 'bool operator>=(const HugeInt&, const HugeInt&)':
0_0_22484402_1355.cpp:100:11: error: 'const class HugeInt' has no member named 'integer'
return A.integer >= B.integer;
^
0_0_22484402_1355.cpp:100:24: error: 'const class HugeInt' has no member named 'integer'
return A.integer >= B.integer;
^
0_0_22484402_1355.cpp: In function 'bool operator<=(const HugeInt&, const HugeInt&)':
0_0_22484402_1355.cpp:105:11: error: 'const class HugeInt' has no member named 'integer'
return A.integer <= B.integer;
^
0_0_22484402_1355.cpp:105:24: error: 'const class HugeInt' has no member named 'integer'
return A.integer <= B.integer;
^
0_0_22484402_1355.cpp: In function 'HugeInt operator+(const HugeInt&, const HugeInt&)':
0_0_22484402_1355.cpp:111:16: error: 'const class HugeInt' has no member named 'integer'
int signA = A.integer[0], signB = B.integer[0];
^
0_0_22484402_1355.cpp:112:16: error: 'signB' was not declared in this scope
if ( signA != signB ) //A,B异号,则先求A,B之差
^
0_0_22484402_1355.cpp:120:10: error: 'class HugeInt' has no member named 'integer'
ret.integer[i] += A.integer[i] - B.integer[i];
^
0_0_22484402_1355.cpp:120:26: error: 'const class HugeInt' has no member named 'integer'
ret.integer[i] += A.integer[i] - B.integer[i];
^
0_0_22484402_1355.cpp:120:41: error: 'const class HugeInt' has no member named 'integer'
ret.integer[i] += A.integer[i] - B.integer[i];
^
0_0_22484402_1355.cpp:121:15: error: 'class HugeInt' has no member named 'integer'
if ( ret.integer[i] < 0 )
^
0_0_22484402_1355.cpp:123:11: error: 'class HugeInt' has no member named 'integer'
ret.integer[i] += 10;
^
0_0_22484402_1355.cpp:124:11: error: 'class HugeInt' has no member named 'integer'
ret.integer[i-1]--;
^
0_0_22484402_1355.cpp:127:9: error: 'class HugeInt' has no member named 'integer'
ret.integer[0] = 1; //结果为正
^
0_0_22484402_1355.cpp:132:9: error: 'class HugeInt' has no member named 'integer'
ret.integer[0] = -1; //结果为负
^
0_0_22484402_1355.cpp:141:8: error: 'class HugeInt' has no member named 'integer'
ret.integer[i] += A.integer[i] + B.integer[i];
^
0_0_22484402_1355.cpp:141:24: error: 'const class HugeInt' has no member named 'integer'
ret.integer[i] += A.integer[i] + B.integer[i];
^
0_0_22484402_1355.cpp:141:39: error: 'const class HugeInt' has no member named 'integer'
ret.integer[i] += A.integer[i] + B.integer[i];
^
0_0_22484402_1355.cpp:142:13: error: 'class HugeInt' has no member named 'integer'
if ( ret.integer[i] >= 10 )
^
0_0_22484402_1355.cpp:144:9: error: 'class HugeInt' has no member named 'integer'
ret.integer[i] -= 10;
^
0_0_22484402_1355.cpp:145:9: error: 'class HugeInt' has no member named 'integer'
ret.integer[i-1]++;
^
0_0_22484402_1355.cpp:148:7: error: 'class HugeInt' has no member named 'integer'
ret.integer[0] = signA; //处理符号
^
0_0_22484402_1355.cpp: In function 'HugeInt operator-(const HugeInt&)':
0_0_22484402_1355.cpp:161:22: error: 'class HugeInt' has no member named 'integer'
if ( A != "0" ) ret.integer[0] = -ret.integer[0]; //特判 0
^
0_0_22484402_1355.cpp:161:40: error: 'class HugeInt' has no member named 'integer'
if ( A != "0" ) ret.integer[0] = -ret.integer[0]; //特判 0
^
0_0_22484402_1355.cpp: In function 'HugeInt operator*(const HugeInt&, const HugeInt&)':
0_0_22484402_1355.cpp:173:8: error: 'class HugeInt' has no member named 'integer'
ret.integer[i + j - len] += A.integer[i] * B.integer[j];
^
0_0_22484402_1355.cpp:173:34: error: 'const class HugeInt' has no member named 'integer'
ret.integer[i + j - len] += A.integer[i] * B.integer[j];
^
0_0_22484402_1355.cpp:173:49: error: 'const class HugeInt' has no member named 'integer'
ret.integer[i + j - len] += A.integer[i] * B.integer[j];
^
0_0_22484402_1355.cpp:177:7: error: 'class HugeInt' has no member named 'integer'
ret.integer[i-1] += ret.integer[i] / 10;
^
0_0_22484402_1355.cpp:177:27: error: 'class HugeInt' has no member named 'integer'
ret.integer[i-1] += ret.integer[i] / 10;
^
0_0_22484402_1355.cpp:178:7: error: 'class HugeInt' has no member named 'integer'
ret.integer[i] %= 10;
^
0_0_22484402_1355.cpp:180:6: error: 'class HugeInt' has no member named 'integer'
ret.integer[0] = A.integer[0] * B.integer[0]; //处理符号
^
0_0_22484402_1355.cpp:180:21: error: 'const class HugeInt' has no member named 'integer'
ret.integer[0] = A.integer[0] * B.integer[0]; //处理符号
^
0_0_22484402_1355.cpp:180:36: error: 'const class HugeInt' has no member named 'integer'
ret.integer[0] = A.integer[0] * B.integer[0]; //处理符号
^
0_0_22484402_1355.cpp: In function 'HugeInt operator/(HugeInt, HugeInt)':
0_0_22484402_1355.cpp:187:15: error: 'class HugeInt' has no member named 'integer'
int sign = A.integer[0] * B.integer[0]; //处理符号
^
0_0_22484402_1355.cpp:187:30: error: 'class HugeInt' has no member named 'integer'
int sign = A.integer[0] * B.integer[0]; //处理符号
^
0_0_22484402_1355.cpp:188:9: error: 'class HugeInt' has no member named 'integer'
if ( A.integer[0] < 0 ) A.integer[0] = 1; //变成正数
^
0_0_22484402_1355.cpp:188:28: error: 'class HugeInt' has no member named 'integer'
if ( A.integer[0] < 0 ) A.integer[0] = 1; //变成正数
^
0_0_22484402_1355.cpp:189:9: error: 'class HugeInt' has no member named 'integer'
if ( B.integer[0] < 0 ) B.integer[0] = 1;
^
0_0_22484402_1355.cpp:189:28: error: 'class HugeInt' has no member named 'integer'
if ( B.integer[0] < 0 ) B.integer[0] = 1;
^
0_0_22484402_1355.cpp:193:21: error: 'class Hug
|