/ Vijos /

记录详情

Compile Error

/in/foo.cc:56:2: error: 'st' does not name a type
 }st;
  ^~
/in/foo.cc:87:1: error: expected '}' at end of input
 }
 ^
/in/foo.cc: In member function 'Point tree::ask(int, int, int, int, int)':
/in/foo.cc:50:24: error: expected primary-expression before '{' token
   if(l>=r) return Point{l,*(tag[o].lower_bound(y)};
                        ^
/in/foo.cc:50:24: error: expected ';' before '{' token
/in/foo.cc:50:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(l>=r) return Point{l,*(tag[o].lower_bound(y)};
   ^~
/in/foo.cc:50:24: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   if(l>=r) return Point{l,*(tag[o].lower_bound(y)};
                        ^
/in/foo.cc:50:50: error: expected ')' before '}' token
   if(l>=r) return Point{l,*(tag[o].lower_bound(y)};
                                                  ^
/in/foo.cc:50:50: warning: left operand of comma operator has no effect [-Wunused-value]
/in/foo.cc:50:50: error: expected ';' before '}' token
/in/foo.cc: In member function 'int tree::main()':
/in/foo.cc:59:5: error: 'st' was not declared in this scope
     st.init();
     ^~
/in/foo.cc:63:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   scanf("%s%d%d",s,&ask[i].x,&ask[i].y);
                          ^
/in/foo.cc:63:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   scanf("%s%d%d",s,&ask[i].x,&ask[i].y);
                                    ^
/in/foo.cc:64:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   _hash[++cnt]=ask[i].x;
                     ^
/in/foo.cc:65:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   _hash[++cnt]=ask[i].y;
                     ^
/in/foo.cc:66:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   if(s[0]=='a') ask[i].opt=1;
                      ^
/in/foo.cc:67:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   if(s[0]=='r') ask[i].opt=2;
                      ^
/in/foo.cc:68:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   if(s[0]=='f') ask[i].opt=3;
                      ^
/in/foo.cc:75:46: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   int x=lower_bound(_hash+1,_hash+tot+1,ask[i].x)-_hash;
                                              ^
/in/foo.cc:76:46: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   int y=lower_bound(_hash+1,_hash+tot+1,ask[i].y)-_hash;
                                              ^
/in/foo.cc:77:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   if(ask[i].opt==1) st.insert(1,1,tot,x,y);
           ^
/in/foo.cc:78:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   if(ask[i].opt==2) st.remove(1,1,tot,x,y);
           ^
/in/foo.cc:79:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   if(ask[i].opt==3)
           ^
/in/foo.cc: At global scope:
/in/foo.cc:87:1: error: expected unqualified-id at end of input
 }
 ^

信息

递交者
类型
自测
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2019-08-26 14:11:55
评测时间
2019-08-26 14:11:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes