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_27346962_12174.cpp: In function 'void dfs1(int, int)':
0_0_27346962_12174.cpp:63:13: error: reference to 'ref' is ambiguous
             ref[len[i]] = to[i], val[to[i]] = len[i];
             ^
0_0_27346962_12174.cpp:42:5: note: candidates are: int ref [200005]
 int ref[MAXN], val[MAXN];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
                 from 0_0_27346962_12174.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:461:5: note:                 template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>)
     ref(reference_wrapper<_Tp> __t) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:453:10: note:                 template<class _Tp> void std::ref(const _Tp&&)
     void ref(const _Tp&&) = delete;
          ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:443:5: note:                 template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&)
     ref(_Tp& __t) noexcept
     ^
0_0_27346962_12174.cpp: In function 'void work()':
0_0_27346962_12174.cpp:110:9: error: reference to 'ref' is ambiguous
         ref[i] = val[i] = 0;
         ^
0_0_27346962_12174.cpp:42:5: note: candidates are: int ref [200005]
 int ref[MAXN], val[MAXN];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
                 from 0_0_27346962_12174.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:461:5: note:                 template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>)
     ref(reference_wrapper<_Tp> __t) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:453:10: note:                 template<class _Tp> void std::ref(const _Tp&&)
     void ref(const _Tp&&) = delete;
          ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:443:5: note:                 template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&)
     ref(_Tp& __t) noexcept
     ^
0_0_27346962_12174.cpp:126:30: error: reference to 'ref' is ambiguous
                 modify(dfn_1[ref[x]], delta);
                              ^
0_0_27346962_12174.cpp:42:5: note: candidates are: int ref [200005]
 int ref[MAXN], val[MAXN];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
                 from 0_0_27346962_12174.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:461:5: note:                 template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>)
     ref(reference_wrapper<_Tp> __t) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:453:10: note:                 template<class _Tp> void std::ref(const _Tp&&)
     void ref(const _Tp&&) = delete;
          ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:443:5: note:                 template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&)
     ref(_Tp& __t) noexcept
     ^
0_0_27346962_12174.cpp:127:30: error: reference to 'ref' is ambiguous
                 modify(dfn_2[ref[x]] + 1, -delta);
                              ^
0_0_27346962_12174.cpp:42:5: note: candidates are: int ref [200005]
 int ref[MAXN], val[MAXN];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
                 from 0_0_27346962_12174.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:461:5: note:                 template<class _Tp> std::reference_wrapper<_Tp> std::ref(std::reference_wrapper<_Tp>)
     ref(reference_wrapper<_Tp> __t) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:453:10: note:                 template<class _Tp> void std::ref(const _Tp&&)
     void ref(const _Tp&&) = delete;
          ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:443:5: note:                 template<class _Tp> std::reference_wrapper<_Tp> std::ref(_Tp&)
     ref(_Tp& __t) noexcept
     ^


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-05-19 13:27:56, Gzip enabled