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_37080881_7145.cpp: In function 'std::pair<int, int> nxt(int)':
0_0_37080881_7145.cpp:23:7: error: expected unqualified-id before '[' token
  auto [c,l,r]=*E[u].begin();
       ^
0_0_37080881_7145.cpp:24:28: error: 'l' was not declared in this scope
  auto it=S[u].lower_bound({l+1,0});
                            ^
0_0_37080881_7145.cpp:24:34: error: no matching function for call to 'std::set<std::pair<int, int> >::lower_bound(<brace-enclosed initializer list>)'
  auto it=S[u].lower_bound({l+1,0});
                                  ^
0_0_37080881_7145.cpp:24:34: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:86,
                 from 0_0_37080881_7145.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:722:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::lower_bound(const key_type&) [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]
       lower_bound(const key_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:722:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type& {aka const std::pair<int, int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:726:7: note: std::set<_Key, _Compare, _Alloc>::const_iterator std::set<_Key, _Compare, _Alloc>::lower_bound(const key_type&) const [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]
       lower_bound(const key_type& __x) const
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:726:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const key_type& {aka const std::pair<int, int>&}'
0_0_37080881_7145.cpp:26:28: error: 'r' was not declared in this scope
  if(it==S[u].end()||it->sc<r)
                            ^
0_0_37080881_7145.cpp:27:49: error: 'c' was not declared in this scope
   return {it==S[u].end()?l:std::max(l,it->sc+1),c-tag[u]};
                                                 ^
0_0_37080881_7145.cpp:27:57: error: could not convert '{<expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::pair<int, int>'
   return {it==S[u].end()?l:std::max(l,it->sc+1),c-tag[u]};
                                                         ^
0_0_37080881_7145.cpp: In function 'int main()':
0_0_37080881_7145.cpp:60:9: error: expected unqualified-id before '[' token
    auto [v,w]=nxt(u);
         ^
0_0_37080881_7145.cpp:61:12: error: 'w' was not declared in this scope
    tag[u]+=w;
            ^
0_0_37080881_7145.cpp:62:23: error: 'v' was not declared in this scope
    if(fnd(f,u)!=fnd(f,v)){
                       ^
0_0_37080881_7145.cpp:69:8: error: 'v' was not declared in this scope
    for(v=fnd(g,v);v!=u;v=fnd(g,fa[v])){
        ^
0_0_37080881_7145.cpp:74:14: error: expected unqualified-id before '[' token
     for(auto [c,l,r]:E[v])
              ^
0_0_37080881_7145.cpp:74:14: error: expected ';' before '[' token
0_0_37080881_7145.cpp:74:15: error: 'c' was not declared in this scope
     for(auto [c,l,r]:E[v])
               ^
0_0_37080881_7145.cpp:74:17: error: 'l' was not declared in this scope
     for(auto [c,l,r]:E[v])
                 ^
0_0_37080881_7145.cpp:74:19: error: 'r' was not declared in this scope
     for(auto [c,l,r]:E[v])
                   ^
0_0_37080881_7145.cpp: In lambda function:
0_0_37080881_7145.cpp:74:21: error: expected '{' before ':' token
     for(auto [c,l,r]:E[v])
                     ^
0_0_37080881_7145.cpp: In function 'int main()':
0_0_37080881_7145.cpp:74:21: error: expected ';' before ':' token
0_0_37080881_7145.cpp:74:21: error: expected primary-expression before ':' token
0_0_37080881_7145.cpp:74:21: error: expected ')' before ':' token
0_0_37080881_7145.cpp:74:21: error: expected primary-expression before ':' token
0_0_37080881_7145.cpp:78:14: error: expected unqualified-id before '[' token
     for(auto [l,r]:S[v]){
              ^
0_0_37080881_7145.cpp:78:14: error: expected ';' before '[' token
0_0_37080881_7145.cpp:78:15: error: 'l' was not declared in this scope
     for(auto [l,r]:S[v]){
               ^
0_0_37080881_7145.cpp:78:17: error: 'r' was not declared in this scope
     for(auto [l,r]:S[v]){
                 ^
0_0_37080881_7145.cpp: In lambda function:
0_0_37080881_7145.cpp:78:19: error: expected '{' before ':' token
     for(auto [l,r]:S[v]){
                   ^
0_0_37080881_7145.cpp: In function 'int main()':
0_0_37080881_7145.cpp:78:19: error: expected ';' before ':' token
0_0_37080881_7145.cpp:78:19: error: expected primary-expression before ':' token
0_0_37080881_7145.cpp:78:19: error: expected ')' before ':' token
0_0_37080881_7145.cpp:78:19: error: expected primary-expression before ':' token


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-25 22:45:43, Gzip enabled