/ Vijos /

记录详情

Compile Error

/in/foo.cc:34:5: error: 'BigNumber::BigNum::BigNum(LL)' cannot be overloaded
     BigNum(LL x){
     ^~~~~~
/in/foo.cc:28:5: error: with 'BigNumber::BigNum::BigNum(long long int)'
     BigNum(int x){
     ^~~~~~
/in/foo.cc:67:10: error: 'void BigNumber::BigNum::operator=(LL)' cannot be overloaded
     void operator =(LL a){
          ^~~~~~~~
/in/foo.cc:64:10: error: with 'void BigNumber::BigNum::operator=(long long int)'
     void operator =(int a){
          ^~~~~~~~
/in/foo.cc:142:27: error: postfix 'BigNumber::BigNum BigNumber::BigNum::operator++(long long int)' must take 'int' as its argument
     BigNum operator ++(int){
                           ^
/in/foo.cc:146:27: error: postfix 'BigNumber::BigNum BigNumber::BigNum::operator--(long long int)' must take 'int' as its argument
     BigNum operator --(int){
                           ^
/in/foo.cc:171:10: error: 'void BigNumber::BigNum::operator*=(const LL&)' cannot be overloaded
     void operator *=(const LL &x){
          ^~~~~~~~
/in/foo.cc:168:10: error: with 'void BigNumber::BigNum::operator*=(const long long int&)'
     void operator *=(const int &x){
          ^~~~~~~~
/in/foo.cc: In member function 'bool BigNumber::BigNum::operator<(const BigNumber::BigNum&) const':
/in/foo.cc:79:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
       if (flag<a.flag || flag==a.flag && le<a.le) return 1;
                          ~~~~~~~~~~~~~^~~~~~~~~~
/in/foo.cc:80:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
       if (flag>a.flag || flag==a.flag && le>a.le) return 0;
                          ~~~~~~~~~~~~~^~~~~~~~~~
/in/foo.cc: In member function 'bool BigNumber::BigNum::operator>(const BigNumber::BigNum&) const':
/in/foo.cc:87:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
       if (flag<a.flag || flag==a.flag && le<a.le) return 0;
                          ~~~~~~~~~~~~~^~~~~~~~~~
/in/foo.cc:88:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
       if (flag>a.flag || flag==a.flag && le>a.le) return 1;
                          ~~~~~~~~~~~~~^~~~~~~~~~
/in/foo.cc: In function 'bool BigNumber::operator<=(const BigNumber::BigNum&, const BigNumber::BigNum&)':
/in/foo.cc:305:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a > b) return 0; return 1;
     ^~
/in/foo.cc:305:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (a > b) return 0; return 1;
                          ^~~~~~
/in/foo.cc: In function 'bool BigNumber::operator>=(const BigNumber::BigNum&, const BigNumber::BigNum&)':
/in/foo.cc:308:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a < b) return 0; return 1;
     ^~
/in/foo.cc:308:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (a < b) return 0; return 1;
                          ^~~~~~
/in/foo.cc: In function 'bool BigNumber::operator<=(const BigNumber::BigNum&, const long long int&)':
/in/foo.cc:311:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a > b) return 0; return 1;
     ^~
/in/foo.cc:311:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (a > b) return 0; return 1;
                          ^~~~~~
/in/foo.cc: In function 'bool BigNumber::operator<=(const long long int&, const BigNumber::BigNum&)':
/in/foo.cc:314:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a > b) return 0; return 1;
     ^~
/in/foo.cc:314:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (a > b) return 0; return 1;
                          ^~~~~~
/in/foo.cc: In function 'bool BigNumber::operator>=(const BigNumber::BigNum&, const long long int&)':
/in/foo.cc:317:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a < b) return 0; return 1;
     ^~
/in/foo.cc:317:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (a < b) return 0; return 1;
                          ^~~~~~
/in/foo.cc: In function 'bool BigNumber::operator>=(const long long int&, const BigNumber::BigNum&)':
/in/foo.cc:320:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a < b) return 0; return 1;
     ^~
/in/foo.cc:320:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (a < b) return 0; return 1;
                          ^~~~~~
/in/foo.cc: In function 'long long int BigNumber::max(const long long int&, const long long int&)':
/in/foo.cc:325:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a < b) return b; return a;
     ^~
/in/foo.cc:325:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (a < b) return b; return a;
                          ^~~~~~
/in/foo.cc: In function 'long long int BigNumber::min(const long long int&, const long long int&)':
/in/foo.cc:328:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a < b) return a; return b;
     ^~
/in/foo.cc:328:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (a < b) return a; return b;
                          ^~~~~~
/in/foo.cc: In function 'BigNumber::BigNum BigNumber::max(const BigNumber::BigNum&, const BigNumber::BigNum&)':
/in/foo.cc:331:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a < b) return b; return a;
     ^~
/in/foo.cc:331:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (a < b) return b; return a;
                          ^~~~~~
/in/foo.cc: In function 'BigNumber::BigNum BigNumber::min(const BigNumber::BigNum&, const BigNumber::BigNum&)':
/in/foo.cc:334:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a < b) return a; return b;
     ^~
/in/foo.cc:334:26: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (a < b) return a; return b;
                          ^~~~~~
/in/foo.cc: In function 'long long int BigNumber::odd(const BigNumber::BigNum&)':
/in/foo.cc:420:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (x.v[1] & 1) return 1; return 0;
     ^~
/in/foo.cc:420:31: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if (x.v[1] & 1) return 1; return 0;
                               ^~~~~~
/in/foo.cc: In function 'void BigNumber::Print(const BigNumber::BigNum&)':
/in/foo.cc:497:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
     printf("%d",a.v[a.le]);
                          ^
/in/foo.cc: At global scope:
/in/foo.cc:625:10: error: '::main' must return 'int'
 int main(){
          ^

信息

递交者
类型
递交
题目
P1005 超长数字串
语言
C++
递交时间
2018-08-28 10:21:55
评测时间
2018-08-28 10:21:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes