QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#32942#141. 8 染色flowerCompile Error//C++1411.3kb2022-05-25 23:44:172023-01-15 14:36:19

详细

Alice.code: In member function ‘void sub1::SegmentTree::upd(int, int, int, int, int, int)’:
Alice.code:100:39: error: no matching function for call to ‘sub1::SegmentTree::upd(int, int&, int, int&, int&)’
  100 |                         p <= mid ? upd(ls, l, mid, p, k) : upd(rs, mid + 1, r, p, k);
      |                                    ~~~^~~~~~~~~~~~~~~~~~
Alice.code:98:22: note: candidate: ‘void sub1::SegmentTree::upd(int, int, int, int, int, int)’
   98 |                 void upd(int u, int l, int r, int p, int k, int s) {
      |                      ^~~
Alice.code:98:22: note:   candidate expects 6 arguments, 5 provided
Alice.code:100:63: error: no matching function for call to ‘sub1::SegmentTree::upd(int, int, int&, int&, int&)’
  100 |                         p <= mid ? upd(ls, l, mid, p, k) : upd(rs, mid + 1, r, p, k);
      |                                                            ~~~^~~~~~~~~~~~~~~~~~~~~~
Alice.code:98:22: note: candidate: ‘void sub1::SegmentTree::upd(int, int, int, int, int, int)’
   98 |                 void upd(int u, int l, int r, int p, int k, int s) {
      |                      ^~~
Alice.code:98:22: note:   candidate expects 6 arguments, 5 provided
Alice.code: In function ‘void sub1::work()’:
Alice.code:149:17: error: ‘SGT’ was not declared in this scope
  149 |                 SGT s[2];
      |                 ^~~
Alice.code:150:17: error: ‘s’ was not declared in this scope; did you mean ‘sy’?
  150 |                 s[0].init(my), s[1].init(my);
      |                 ^
      |                 sy
Alice.code:152:36: error: ‘m’ was not declared in this scope
  152 |                 for(int i = 0; i < m; i ++) {
      |                                    ^
Alice.code:153:34: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’
  153 |                         for(auto [c, u] : del[i]) {
      |                                  ^
Alice.code:156:34: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’
  156 |                         for(auto [c, u] : add[i]) {
      |                                  ^
Alice.code:157:88: error: ‘class std::vector<int>’ has no member named ‘beign’; did you mean ‘begin’?
  157 |                                 int p = upper_bound(sy.begin(), sy.end(), u.r[1]) - sy.beign() - 1;
      |                                                                                        ^~~~~
      |                                                                                        begin
Alice.code:159:46: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’
  159 |                                         auto [mx, ss] = s[!c].qry(1, 0, my, 0, p);
      |                                              ^
Alice.code: In function ‘int main()’:
Alice.code:179:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  179 |         freopen("in.txt", "r", stdin);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~