QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#652286#9123. Kth Sumucup-team3583#Compile Error//C++202.6kb2024-10-18 18:32:562024-10-18 18:32:57

Details

answer.code: In lambda function:
answer.code:39:9: error: reference to ‘priority_queue’ is ambiguous
   39 |         priority_queue<tuple<long long, int, int>> pq;
      |         ^~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/extc++.h:75,
                 from answer.code:3:
/usr/include/c++/13/ext/pb_ds/priority_queue.hpp:84:9: note: candidates are: ‘template<class _Tv, class Cmp_Fn, class Tag, class _Alloc> class __gnu_pbds::priority_queue’
   84 |   class priority_queue
      |         ^~~~~~~~~~~~~~
In file included from /usr/include/c++/13/queue:66,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:157,
                 from answer.code:2:
/usr/include/c++/13/bits/stl_queue.h:498:11: note:                 ‘template<class _Tp, class _Sequence, class _Compare> class std::priority_queue’
  498 |     class priority_queue
      |           ^~~~~~~~~~~~~~
answer.code:39:49: error: expected primary-expression before ‘>’ token
   39 |         priority_queue<tuple<long long, int, int>> pq;
      |                                                 ^~
answer.code:39:52: error: ‘pq’ was not declared in this scope; did you mean ‘p’?
   39 |         priority_queue<tuple<long long, int, int>> pq;
      |                                                    ^~
      |                                                    p
answer.code:41:32: error: wrong number of template arguments (1, should be at least 2)
   41 |         gp_hash_table<long long> vis;
      |                                ^
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/extc++.h:74:
/usr/include/c++/13/ext/pb_ds/assoc_container.hpp:368:9: note: provided for ‘template<class Key, class Mapped, class Hash_Fn, class Eq_Fn, class Comb_Probe_Fn, class Probe_Fn, class Resize_Policy, bool Store_Hash, class _Alloc> class __gnu_pbds::gp_hash_table’
  368 |   class gp_hash_table : public PB_DS_GP_HASH_BASE
      |         ^~~~~~~~~~~~~
answer.code:49:35: error: request for member ‘find’ in ‘vis’, which is of non-class type ‘int’
   49 |                 if (auto it = vis.find(ts(i + 1, j));
      |                                   ^~~~
answer.code:50:36: error: request for member ‘end’ in ‘vis’, which is of non-class type ‘int’
   50 |                         (it == vis.end() || *it != ts(i + 1, j))) {
      |                                    ^~~
answer.code:51:25: error: request for member ‘insert’ in ‘vis’, which is of non-class type ‘int’
   51 |                     vis.insert(ts(i + 1, j));
      |                         ^~~~~~
answer.code:57:35: error: expected unqualified-id before ‘(’ token
   57 |                 if (auto it = vis.(ts(i, j + 1));
      |                                   ^
answer.code:58:36: error: request for member ‘end’ in ‘vis’, which is of non-class type ‘int’
   58 |                         (it == vis.end() || *it != ts(i, j + 1))) {
      |                                    ^~~
answer.code:59:25: error: request for member ‘insert’ in ‘vis’, which is of non-class type ‘int’
   59 |                     vis.insert(ts(i, j + 1));
      |                         ^~~~~~