/ Vijos /

记录详情

Compile Error

/in/foo.cc: In member function 'bool BigNumber::BigNum::operator<(const BigNumber::BigNum&) const':
/in/foo.cc:78:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
       if (flag<a.flag || flag==a.flag && le<a.le) return 1;
                          ~~~~~~~~~~~~~^~~~~~~~~~
/in/foo.cc:79: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:86:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
       if (flag<a.flag || flag==a.flag && le<a.le) return 0;
                          ~~~~~~~~~~~~~^~~~~~~~~~
/in/foo.cc:87: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:304:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a > b) return 0; return 1;
     ^~
/in/foo.cc:304: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:307:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a < b) return 0; return 1;
     ^~
/in/foo.cc:307: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 int&)':
/in/foo.cc:310:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a > b) return 0; return 1;
     ^~
/in/foo.cc:310: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 int&, const BigNumber::BigNum&)':
/in/foo.cc:313:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a > b) return 0; return 1;
     ^~
/in/foo.cc:313: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 int&)':
/in/foo.cc:316:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a < b) return 0; return 1;
     ^~
/in/foo.cc:316: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 int&, const BigNumber::BigNum&)':
/in/foo.cc:319:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a < b) return 0; return 1;
     ^~
/in/foo.cc:319: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 'int BigNumber::max(const int&, const int&)':
/in/foo.cc:324:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a < b) return b; return a;
     ^~
/in/foo.cc:324: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 'int BigNumber::min(const int&, const int&)':
/in/foo.cc:327:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a < b) return a; return b;
     ^~
/in/foo.cc:327: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:330:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a < b) return b; return a;
     ^~
/in/foo.cc:330: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:333:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (a < b) return a; return b;
     ^~
/in/foo.cc:333: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 'int BigNumber::odd(const BigNumber::BigNum&)':
/in/foo.cc:419:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (x.v[1] & 1) return 1; return 0;
     ^~
/in/foo.cc:419: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:496:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'LL {aka long long int}' [-Wformat=]
     printf("%d",a.v[a.le]);
                          ^
/in/foo.cc: At global scope:
/in/foo.cc:626:10: error: '::main' must return 'int'
 int main(){
          ^

信息

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