/ new_bzoj /

记录详情

Compile Error

/in/foo.cc: In member function 'void info::nw(long long int)':
/in/foo.cc:23:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
         while(s[i]) na[i-1]=s[i],i++; na[i-1]=0;
         ^~~~~
/in/foo.cc:23:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
         while(s[i]) na[i-1]=s[i],i++; na[i-1]=0;
                                       ^~
/in/foo.cc: In function 'void insert(long long int, long long int, long long int, long long int&)':
/in/foo.cc:50:58: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
     if(!rt){rt=x; nd[x].nw(val); fa[x]=last; Splay(x,root); return;}
                                                          ^
/in/foo.cc:36:6: note:   initializing argument 2 of 'void Splay(int, int&)'
 void Splay(int x,int &k){
      ^~~~~
/in/foo.cc: In function 'void erase()':
/in/foo.cc:55:18: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
     Splay(id,root);
                  ^
/in/foo.cc:36:6: note:   initializing argument 2 of 'void Splay(int, int&)'
 void Splay(int x,int &k){
      ^~~~~
/in/foo.cc:59:18: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
     Splay(t1,root);
                  ^
/in/foo.cc:36:6: note:   initializing argument 2 of 'void Splay(int, int&)'
 void Splay(int x,int &k){
      ^~~~~
/in/foo.cc:60:22: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
     Splay(t2,ch[t1][1]);
              ~~~~~~~~^
/in/foo.cc:36:6: note:   initializing argument 2 of 'void Splay(int, int&)'
 void Splay(int x,int &k){
      ^~~~~
/in/foo.cc: In function 'void ask_rank()':
/in/foo.cc:69:18: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
     Splay(id,root);
                  ^
/in/foo.cc:36:6: note:   initializing argument 2 of 'void Splay(int, int&)'
 void Splay(int x,int &k){
      ^~~~~
/in/foo.cc: In function 'void ask_name(long long int)':
/in/foo.cc:97:17: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
     Splay(x,root);
                 ^
/in/foo.cc:36:6: note:   initializing argument 2 of 'void Splay(int, int&)'
 void Splay(int x,int &k){
      ^~~~~
/in/foo.cc:98:20: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
     Splay(y,ch[x][1]);
             ~~~~~~~^
/in/foo.cc:36:6: note:   initializing argument 2 of 'void Splay(int, int&)'
 void Splay(int x,int &k){
      ^~~~~

信息

递交者
类型
递交
题目
GameZ游戏排名系统
语言
C++
递交时间
2017-10-19 21:13:55
评测时间
2017-10-19 21:13:55
评测机
分数
0
总耗时
423ms
峰值内存
44.039 MiB