0_0_26024467_21258\Main.java:1: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_26024467_21258\Main.java:1: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
^
0_0_26024467_21258\Main.java:5: 错误: 需要class, interface或enum
struct BigInteger
^
0_0_26024467_21258\Main.java:8: 错误: 需要class, interface或enum
static const int WIDTH=8;//八位一存储,如修改记得修改输出中的%08d
^
0_0_26024467_21258\Main.java:9: 错误: 需要class, interface或enum
bool sign;//符号, 0表示负数
^
0_0_26024467_21258\Main.java:10: 错误: 需要class, interface或enum
size_t length;
^
0_0_26024467_21258\Main.java:11: 错误: 需要class, interface或enum
vector<int> num;//反序存
^
0_0_26024467_21258\Main.java:13: 错误: 需要class, interface或enum
BigInteger (long long x = 0) { *this = x; }
^
0_0_26024467_21258\Main.java:13: 错误: 需要class, interface或enum
BigInteger (long long x = 0) { *this = x; }
^
0_0_26024467_21258\Main.java:14: 错误: 需要class, interface或enum
BigInteger (const string& x) { *this = x; }
^
0_0_26024467_21258\Main.java:15: 错误: 需要class, interface或enum
BigInteger (const BigInteger& x) { *this = x; }
^
0_0_26024467_21258\Main.java:19: 错误: 需要class, interface或enum
while(num.back() == 0 && num.size() != 1) { num.pop_back(); }
^
0_0_26024467_21258\Main.java:25: 错误: 需要class, interface或enum
int tmp = num.back();
^
0_0_26024467_21258\Main.java:26: 错误: 需要class, interface或enum
if(tmp == 0) { length = 1; }
^
0_0_26024467_21258\Main.java:26: 错误: 需要class, interface或enum
if(tmp == 0) { length = 1; }
^
0_0_26024467_21258\Main.java:30: 错误: 需要class, interface或enum
while(tmp > 0) { ++length; tmp /= 10; }
^
0_0_26024467_21258\Main.java:30: 错误: 需要class, interface或enum
while(tmp > 0) { ++length; tmp /= 10; }
^
0_0_26024467_21258\Main.java:30: 错误: 需要class, interface或enum
while(tmp > 0) { ++length; tmp /= 10; }
^
0_0_26024467_21258\Main.java:37: 错误: 需要class, interface或enum
if (x >= 0) sign = true;
^
0_0_26024467_21258\Main.java:38: 错误: 需要class, interface或enum
else { sign = false; x = -x; }
^
0_0_26024467_21258\Main.java:38: 错误: 需要class, interface或enum
else { sign = false; x = -x; }
^
0_0_26024467_21258\Main.java:38: 错误: 需要class, interface或enum
else { sign = false; x = -x; }
^
0_0_26024467_21258\Main.java:42: 错误: 需要class, interface或enum
x/=BASE;
^
0_0_26024467_21258\Main.java:43: 错误: 需要class, interface或enum
}while(x>0);
^
0_0_26024467_21258\Main.java:44: 错误: 需要class, interface或enum
setLength();
^
0_0_26024467_21258\Main.java:45: 错误: 需要class, interface或enum
return *this;
^
0_0_26024467_21258\Main.java:46: 错误: 需要class, interface或enum
}
^
0_0_26024467_21258\Main.java:51: 错误: 需要class, interface或enum
sign = (str[0] != '-');//设置符号
^
0_0_26024467_21258\Main.java:52: 错误: 需要class, interface或enum
int x, len=(str.size()-1-(!sign))/WIDTH+1;
^
0_0_26024467_21258\Main.java:53: 错误: 需要class, interface或enum
for(int i=0;i<len;i++)
^
0_0_26024467_21258\Main.java:53: 错误: 需要class, interface或enum
for(int i=0;i<len;i++)
^
0_0_26024467_21258\Main.java:53: 错误: 需要class, interface或enum
for(int i=0;i<len;i++)
^
0_0_26024467_21258\Main.java:56: 错误: 需要class, interface或enum
int start=max((int)(!sign), End-WIDTH);//防止越界
^
0_0_26024467_21258\Main.java:57: 错误: 需要class, interface或enum
sscanf(str.substr(start,End-start).c_str(),"%d",&x);
^
0_0_26024467_21258\Main.java:58: 错误: 需要class, interface或enum
num.push_back(x);
^
0_0_26024467_21258\Main.java:59: 错误: 需要class, interface或enum
}
^
0_0_26024467_21258\Main.java:61: 错误: 需要class, interface或enum
return *this;
^
0_0_26024467_21258\Main.java:62: 错误: 需要class, interface或enum
}
^
0_0_26024467_21258\Main.java:67: 错误: 需要class, interface或enum
sign = tmp.sign;
^
0_0_26024467_21258\Main.java:68: 错误: 需要class, interface或enum
length = tmp.length;
^
0_0_26024467_21258\Main.java:69: 错误: 需要class, interface或enum
return *this;
^
0_0_26024467_21258\Main.java:70: 错误: 需要class, interface或enum
}
^
0_0_26024467_21258\Main.java:75: 错误: 需要class, interface或enum
for (int i = 0; i < num.size(); i++)
^
0_0_26024467_21258\Main.java:75: 错误: 需要class, interface或enum
for (int i = 0; i < num.size(); i++)
^
0_0_26024467_21258\Main.java:75: 错误: 需要class, interface或enum
for (int i = 0; i < num.size(); i++)
^
0_0_26024467_21258\Main.java:77: 错误: 需要class, interface或enum
if (!sign) ans.insert(0, "-");//负数
^
0_0_26024467_21258\Main.java:78: 错误: 需要class, interface或enum
return ans;
^
0_0_26024467_21258\Main.java:79: 错误: 需要class, interface或enum
}
^
0_0_26024467_21258\Main.java:81: 错误: 需要class, interface或enum
size_t size() const { return length; }
^
0_0_26024467_21258\Main.java:86: 错误: 需要class, interface或enum
BigInteger ans;
^
0_0_26024467_21258\Main.java:87: 错误: 需要class, interface或enum
ans.length = n + 1;
^
0_0_26024467_21258\Main.java:88: 错误: 需要class, interface或enum
n /= WIDTH;
^
0_0_26024467_21258\Main.java:89: 错误: 需要class, interface或enum
while (ans.num.size() <= n) ans.num.push_back(0);
^
0_0_26024467_21258\Main.java:90: 错误: 需要class, interface或enum
ans.num[n] = 1;
^
0_0_26024467_21258\Main.java:91: 错误: 需要class, interface或enum
while (tmp--) ans.num[n] *= 10;
^
0_0_26024467_21258\Main.java:92: 错误: 需要class, interface或enum
return ans*(*this);
^
0_0_26024467_21258\Main.java:93: 错误: 需要class, interface或enum
}
^
0_0_26024467_21258\Main.java:98: 错误: 需要class, interface或enum
ans.sign = true;
^
0_0_26024467_21258\Main.java:99: 错误: 需要class, interface或enum
return ans;
^
0_0_26024467_21258\Main.java:100: 错误: 需要class, interface或enum
}
^
0_0_26024467_21258\Main.java:102: 错误: 需要class, interface或enum
const BigInteger& operator + () const { return *this; }
^
0_0_26024467_21258\Main.java:106: 错误: 需要class, interface或enum
if (!b.sign) { return *this - (-b); }
^
0_0_26024467_21258\Main.java:107: 错误: 需要class, interface或enum
if (!sign) { return b - (-*this); }
^
0_0_26024467_21258\Main.java:109: 错误: 需要class, interface或enum
ans.num.clear();
^
0_0_26024467_21258\Main.java:110: 错误: 需要class, interface或enum
for(int i=0,g=0;;i++)
^
0_0_26024467_21258\Main.java:110: 错误: 需要class, interface或enum
for(int i=0,g=0;;i++)
^
0_0_26024467_21258\Main.java:113: 错误: 需要class, interface或enum
int x=g;
^
0_0_26024467_21258\Main.java:114: 错误: 需要class, interface或enum
if(i<num.size()) x+=num[i];
^
0_0_26024467_21258\Main.java:115: 错误: 需要class, interface或enum
if(i<b.num.size()) x+=b.num[i];
^
0_0_26024467_21258\Main.java:116: 错误: 需要class, interface或enum
ans.num.push_back(x%BASE);
^
0_0_26024467_21258\Main.java:117: 错误: 需要class, interface或enum
g=x/BASE;
^
0_0_26024467_21258\Main.java:118: 错误: 需要class, interface或enum
}
^
0_0_26024467_21258\Main.java:120: 错误: 需要class, interface或enum
return ans;
^
0_0_26024467_21258\Main.java:121: 错误: 需要class, interface或enum
}
^
0_0_26024467_21258\Main.java:126: 错误: 需要class, interface或enum
if (ans != 0) ans.sign = !ans.sign;
^
0_0_26024467_21258\Main.java:127: 错误: 需要class, interface或enum
return ans;
^
0_0_26024467_21258\Main.java:128: 错误: 需要class, interface或enum
}
^
0_0_26024467_21258\Main.java:132: 错误: 需要class, interface或enum
if (!b.sign) { return *this + (-b); }
^
0_0_26024467_21258\Main.java:133: 错误: 需要class, interface或enum
if (!sign) { return -((-*this) + b); }
^
0_0_26024467_21258\Main.java:134: 错误: 需要class, interface或enum
if (*this < b) { return -(b - *this); }
^
0_0_26024467_21258\Main.java:136: 错误: 需要class, interface或enum
ans.num.clear();
^
0_0_26024467_21258\Main.java:137: 错误: 需要class, interface或enum
for(int i=0,g=0;;i++)
^
0_0_26024467_21258\Main.java:137: 错误: 需要class, interface或enum
for(int i=0,g=0;;i++)
^
0_0_26024467_21258\Main.java:140: 错误: 需要class, interface或enum
int x=g; g=0;
^
0_0_26024467_21258\Main.java:140: 错误: 需要class, interface或enum
int x=g; g=0;
|