记录详情

Runtime Error

/in/foo.cc: In member function 'node* node::rotate()':
/in/foo.cc:37:33: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
         if (fa->son[t] = son[!t]) {
                                 ^
/in/foo.cc:41:24: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
         if (fa = fa->fa) {
                        ^
/in/foo.cc: In function 'node* findrank(int)':
/in/foo.cc:60:9: warning: unused variable 'tmp' [-Wunused-variable]
     int tmp = kth;
         ^~~
/in/foo.cc: In function 'node* insert(char, int)':
/in/foo.cc:100:10: warning: operation on 'now' may be undefined [-Wsequence-point]
     (now = now->son[t])->val = now->hsum = val;
     ~~~~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:128:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < str.size(); ++i) {
                     ~~^~~~~~~~~~~~
/in/foo.cc:148:29: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
                 mid = l + r + 1 >> 1;
                       ~~~~~~^~~
/in/foo.cc: In member function 'int node::get()':
/in/foo.cc:23:42: warning: nonnull argument 'this' compared to NULL [-Wnonnull-compare]
     inline int get() { return this && fa ? fa->son[1] == this : -1; }
                               ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In member function 'int node::getsize()':
/in/foo.cc:27:40: warning: nonnull argument 'this' compared to NULL [-Wnonnull-compare]
     inline int getsize() { return this ? size : 0; }
                                   ~~~~~^~~~~~~~~~
/in/foo.cc: In member function 'long long int node::gethsum()':
/in/foo.cc:28:46: warning: nonnull argument 'this' compared to NULL [-Wnonnull-compare]
     inline long long gethsum() { return this ? hsum : 0; }
                                         ~~~~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 2ms 1.066 MiB
#2 Runtime Error 2ms 1.156 MiB
#3 Runtime Error 2ms 1.078 MiB
#4 Runtime Error 2ms 1.07 MiB
#5 Runtime Error 2ms 1.086 MiB
#6 Runtime Error 2ms 1.07 MiB
#7 Runtime Error 2ms 1.277 MiB
#8 Runtime Error 2ms 1.277 MiB
#9 Runtime Error 2ms 1.277 MiB
#10 Runtime Error 2ms 1.074 MiB

信息

递交者
类型
递交
题目
P1002 火星人prefix
语言
C++
递交时间
2020-01-21 20:34:47
评测时间
2020-01-21 20:36:36
评测机
分数
0
总耗时
24ms
峰值内存
1.277 MiB