QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#298248#4429. Gebyte's Grinducup-team2880#Compile Error//C++201.6kb2024-01-05 21:18:302024-01-05 21:18:30

Details

answer.code: In function ‘Node operator+(const Node&, const Node&)’:
answer.code:27:52: error: could not convert ‘{inf, inf, -1}’ from ‘<brace-enclosed initializer list>’ to ‘Node’
   27 |                 if(a.b == inf) return {inf, inf, -1};
      |                                                    ^
      |                                                    |
      |                                                    <brace-enclosed initializer list>
answer.code:29:62: error: could not convert ‘{((((int)b.Node::a) + ((int)a.Node::b)) - ((int)a.Node::c)), ((((int)b.Node::b) + ((int)a.Node::b)) - ((int)a.Node::c)), b.Node::c}’ from ‘<brace-enclosed initializer list>’ to ‘Node’
   29 |                 return {b.a + a.b - a.c, b.b + a.b - a.c, b.c};
      |                                                              ^
      |                                                              |
      |                                                              <brace-enclosed initializer list>
answer.code:32:53: error: could not convert ‘{a.Node::a, inf, b.Node::c}’ from ‘<brace-enclosed initializer list>’ to ‘Node’
   32 |                 if(a.b == inf) return {a.a, inf, b.c};
      |                                                     ^
      |                                                     |
      |                                                     <brace-enclosed initializer list>
answer.code:34:9: error: expected primary-expression before ‘}’ token
   34 |         }
      |         ^
answer.code: In function ‘void update(int, int, int, int, const Node&)’:
answer.code:40:9: error: ‘push_down’ was not declared in this scope
   40 |         push_down(p);
      |         ^~~~~~~~~
answer.code: In function ‘void work()’:
answer.code:72:33: error: ‘query’ was not declared in this scope
   72 |                         cout << query(pos, 1, n, 1) << '\n';
      |                                 ^~~~~
answer.code: At global scope:
answer.code:82:2: error: ‘fasfsadfs’ does not name a type
   82 | }fasfsadfs
      |  ^~~~~~~~~