QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#679594#9524. 1D Galaxyucup-team159#Compile Error//C++208.8kb2024-10-26 17:56:532024-10-26 17:56:54

詳細信息

answer.code: In member function ‘ll G::getEt(const G&, ll)’:
answer.code:123:33: error: passing ‘const G’ as ‘this’ argument discards qualifiers [-fpermissive]
  123 |     ll lx = getx(t), rx = g.getx(t);
      |                           ~~~~~~^~~
answer.code:111:6: note:   in call to ‘ll G::getx(ll)’
  111 |   ll getx(ll t) {
      |      ^~~~
answer.code: In member function ‘void Solver::solve()’:
answer.code:147:22: error: ‘Q’ was not declared in this scope
  147 |     scanf("%d%d",&n,&Q);
      |                      ^
answer.code:222:22: error: conflicting declaration ‘PQ<std::pair<long long int, int> > q’
  222 |     PQ<pair<ll,int>> q;
      |                      ^
answer.code:146:11: note: previous declaration as ‘int q’
  146 |     int n,q;
      |           ^
answer.code: In lambda function:
answer.code:12:12: error: request for member ‘emplace’ in ‘q’, which is of non-class type ‘int’
   12 | #define em emplace
      |            ^~~~~~~
answer.code:229:9: note: in expansion of macro ‘em’
  229 |       q.em(t,gi); last[i] = t;
      |         ^~
answer.code: In lambda function:
answer.code:239:18: error: no matching function for call to ‘G::setf(ll&)’
  239 |       gs[gi].setf(t);
      |       ~~~~~~~~~~~^~~
answer.code:101:8: note: candidate: ‘void G::setf(ll, ll)’
  101 |   void setf(ll t, ll tx) {
      |        ^~~~
answer.code:101:8: note:   candidate expects 2 arguments, 1 provided
answer.code: In member function ‘void Solver::solve()’:
answer.code:14:24: error: request for member ‘size’ in ‘q’, which is of non-class type ‘int’
   14 | #define sz(x) (int)(x).size()
      |                        ^~~~
answer.code:272:14: note: in expansion of macro ‘sz’
  272 |       while (sz(q) && q.top().fi < nq.t) {
      |              ^~
answer.code:272:25: error: request for member ‘top’ in ‘q’, which is of non-class type ‘int’
  272 |       while (sz(q) && q.top().fi < nq.t) {
      |                         ^~~
answer.code:273:24: error: request for member ‘top’ in ‘q’, which is of non-class type ‘int’
  273 |         auto [t,i] = q.top(); q.pop();
      |                        ^~~
answer.code:273:33: error: request for member ‘pop’ in ‘q’, which is of non-class type ‘int’
  273 |         auto [t,i] = q.top(); q.pop();
      |                                 ^~~
answer.code:277:23: error: ‘gi’ was not declared in this scope; did you mean ‘vi’?
  277 |       ans[nq.qi] = gs[gi[uf[nq.i]]].getx(nq.t);
      |                       ^~
      |                       vi
answer.code: In function ‘int geti()’:
answer.code:26:23: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   26 | int geti(){int x;scanf("%d",&x);return x;}
      |                  ~~~~~^~~~~~~~~
answer.code: In member function ‘void Solver::solve()’:
answer.code:178:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  178 |         scanf("%d%d",&x,&w);
      |         ~~~~~^~~~~~~~~~~~~~