QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#325070#8232. Yet Another Shortest Path Queryucup-team106#Compile Error//C++146.6kb2024-02-11 03:55:542024-02-11 03:55:54

Details

answer.code: In function ‘void solve()’:
answer.code:108:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  108 |         for (auto [u, w] : g[v]) {
      |                   ^
answer.code:124:29: error: ‘class __gnu_pbds::gp_hash_table<std::pair<int, int>, int, chash>’ has no member named ‘count’
  124 |                 if (!dist_2.count({ x, y }) || dist_2[{x, y}] > d) {
      |                             ^~~~~
answer.code:135:29: error: ‘class __gnu_pbds::gp_hash_table<std::pair<int, int>, int, chash>’ has no member named ‘count’
  135 |                 if (!dist_2.count({ v, y }) || dist_2[{v, y}] > d) {
      |                             ^~~~~
answer.code:152:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  152 |         for (auto [x, w1] : go[v])
      |                   ^
answer.code:153:23: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  153 |             for (auto [y, w2] : go[v])
      |                       ^
answer.code:154:27: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  154 |                 for (auto [z, w3] : go[y]) {
      |                           ^
answer.code:156:29: error: ‘class __gnu_pbds::gp_hash_table<std::pair<int, int>, int, chash>’ has no member named ‘count’
  156 |                     if (ans.count({ x, z }))
      |                             ^~~~~
answer.code:158:29: error: ‘class __gnu_pbds::gp_hash_table<std::pair<int, int>, int, chash>’ has no member named ‘count’
  158 |                     if (ans.count({ z, x }))
      |                             ^~~~~
answer.code:167:20: error: ‘class __gnu_pbds::gp_hash_table<std::pair<int, int>, int, chash>’ has no member named ‘count’
  167 |         if (dist_1.count({ u, v }))
      |                    ^~~~~
answer.code:169:20: error: ‘class __gnu_pbds::gp_hash_table<std::pair<int, int>, int, chash>’ has no member named ‘count’
  169 |         if (dist_2.count({ u, v }))
      |                    ^~~~~
answer.code:171:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  171 |         for (auto [x, w] : go[u]) {
      |                   ^
answer.code:172:24: error: ‘class __gnu_pbds::gp_hash_table<std::pair<int, int>, int, chash>’ has no member named ‘count’
  172 |             if (dist_1.count({ x, v }))
      |                        ^~~~~
answer.code:174:24: error: ‘class __gnu_pbds::gp_hash_table<std::pair<int, int>, int, chash>’ has no member named ‘count’
  174 |             if (dist_2.count({ x, v }))
      |                        ^~~~~
answer.code:177:19: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  177 |         for (auto [x, w] : go[v]) {
      |                   ^
answer.code:178:24: error: ‘class __gnu_pbds::gp_hash_table<std::pair<int, int>, int, chash>’ has no member named ‘count’
  178 |             if (dist_1.count({ x, u }))
      |                        ^~~~~
answer.code:180:24: error: ‘class __gnu_pbds::gp_hash_table<std::pair<int, int>, int, chash>’ has no member named ‘count’
  180 |             if (dist_2.count({ x, u }))
      |                        ^~~~~