F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_33467164_26978.cpp: In member function 'data_type weighted_undirected_graph<data_type>::min_cut()':
0_0_33467164_26978.cpp:409:13: error: expected unqualified-id before '[' token
   for (auto [x, y, z] : edge)
             ^
0_0_33467164_26978.cpp:409:13: error: expected ';' before '[' token
0_0_33467164_26978.cpp:409:14: error: 'x' was not declared in this scope
   for (auto [x, y, z] : edge)
              ^
0_0_33467164_26978.cpp:409:17: error: 'y' was not declared in this scope
   for (auto [x, y, z] : edge)
                 ^
0_0_33467164_26978.cpp:409:20: error: 'z' was not declared in this scope
   for (auto [x, y, z] : edge)
                    ^
0_0_33467164_26978.cpp: In lambda function:
0_0_33467164_26978.cpp:409:23: error: expected '{' before ':' token
   for (auto [x, y, z] : edge)
                       ^
0_0_33467164_26978.cpp: In member function 'data_type weighted_undirected_graph<data_type>::min_cut()':
0_0_33467164_26978.cpp:409:23: error: expected ';' before ':' token
0_0_33467164_26978.cpp:409:23: error: expected primary-expression before ':' token
0_0_33467164_26978.cpp:409:23: error: expected ')' before ':' token
0_0_33467164_26978.cpp:409:23: error: expected primary-expression before ':' token
0_0_33467164_26978.cpp:432:10: error: expected unqualified-id before '[' token
     auto [w, x, y] = q.top();
          ^
0_0_33467164_26978.cpp:434:14: error: 'y' was not declared in this scope
     if (used[y]) continue;
              ^
0_0_33467164_26978.cpp:435:10: error: 'y' was not declared in this scope
     used[y] = 1;
          ^
0_0_33467164_26978.cpp:436:13: error: 'x' was not declared in this scope
     lastx = x, lasty = y;
             ^
0_0_33467164_26978.cpp:438:16: error: expected unqualified-id before '[' token
      for (auto [nxt, weight] : v[id])
                ^
0_0_33467164_26978.cpp:438:16: error: expected ';' before '[' token
0_0_33467164_26978.cpp:438:17: error: 'nxt' was not declared in this scope
      for (auto [nxt, weight] : v[id])
                 ^
0_0_33467164_26978.cpp:438:22: error: 'weight' was not declared in this scope
      for (auto [nxt, weight] : v[id])
                      ^
0_0_33467164_26978.cpp: In lambda function:
0_0_33467164_26978.cpp:438:30: error: expected '{' before ':' token
      for (auto [nxt, weight] : v[id])
                              ^
0_0_33467164_26978.cpp: In member function 'data_type weighted_undirected_graph<data_type>::min_cut()':
0_0_33467164_26978.cpp:438:30: error: expected ';' before ':' token
0_0_33467164_26978.cpp:438:30: error: expected primary-expression before ':' token
0_0_33467164_26978.cpp:438:30: error: expected ')' before ':' token
0_0_33467164_26978.cpp:438:30: error: expected primary-expression before ':' token
0_0_33467164_26978.cpp:447:15: error: expected unqualified-id before '[' token
     for (auto [nxt, weight] : v[id])
               ^
0_0_33467164_26978.cpp:447:15: error: expected ';' before '[' token
0_0_33467164_26978.cpp:447:16: error: 'nxt' was not declared in this scope
     for (auto [nxt, weight] : v[id])
                ^
0_0_33467164_26978.cpp:447:21: error: 'weight' was not declared in this scope
     for (auto [nxt, weight] : v[id])
                     ^
0_0_33467164_26978.cpp: In lambda function:
0_0_33467164_26978.cpp:447:29: error: expected '{' before ':' token
     for (auto [nxt, weight] : v[id])
                             ^
0_0_33467164_26978.cpp: In member function 'data_type weighted_undirected_graph<data_type>::min_cut()':
0_0_33467164_26978.cpp:447:29: error: expected ';' before ':' token
0_0_33467164_26978.cpp:447:29: error: expected primary-expression before ':' token
0_0_33467164_26978.cpp:447:29: error: expected ')' before ':' token
0_0_33467164_26978.cpp:447:29: error: expected primary-expression before ':' token
0_0_33467164_26978.cpp: In instantiation of 'void weighted_undirected_graph<data_type>::addedge(int, int, data_type) [with data_type = int]':
0_0_33467164_26978.cpp:468:29:   required from here
0_0_33467164_26978.cpp:401:3: error: converting to 'std::vector<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int> > >::value_type {aka std::tuple<int, int, int>}' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {int&, int&, int&}; <template-parameter-2-2> = void; _Elements = {int, int, int}]'
   edge.push_back({ x, y, z });
   ^
0_0_33467164_26978.cpp: In instantiation of 'data_type weighted_undirected_graph<data_type>::min_cut() [with data_type = int]':
0_0_33467164_26978.cpp:470:24:   required from here
0_0_33467164_26978.cpp:428:4: error: converting to 'std::priority_queue<std::tuple<int, int, int>, std::vector<std::tuple<int, int, int>, std::allocator<std::tuple<int, int, int> > >, std::less<std::tuple<int, int, int> > >::value_type {aka std::tuple<int, int, int>}' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {int, int, int&}; <template-parameter-2-2> = void; _Elements = {int, int, int}]'
    q.push({ 0, 0, start });
    ^
0_0_33467164_26978.cpp:438:6: error: could not convert '<lambda closure object>weighted_undirected_graph<data_type>::min_cut() [with data_type = int]::<lambda()>{}' from 'weighted_undirected_graph<data_type>::min_cut() [with data_type = int]::<lambda()>' to 'bool'
      for (auto [nxt, weight] : v[id])
      ^
0_0_33467164_26978.cpp:447:5: error: could not convert '<lambda closure object>weighted_undirected_graph<data_type>::min_cut() [with data_type = int]::<lambda()>{}' from 'weighted_undirected_graph<data_type>::min_cut() [with data_type = int]::<lambda()>' to 'bool'
     for (auto [nxt, weight] : v[id])
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 04:49:59, Gzip enabled