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_13512617_18620.cpp: In function 'void dfs(int)':
0_0_13512617_18620.cpp:33:2: error: reference to 'fpos' is ambiguous
  fpos[cur]=++cnt;
  ^
0_0_13512617_18620.cpp:20:15: note: candidates are: int fpos [50010]
 int e[maxn*2],fpos[maxn],lpos[maxn];
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:40:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_13512617_18620.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:112:11: note:                 template<class _StateT> class std::fpos
     class fpos
           ^
0_0_13512617_18620.cpp: In function 'int main()':
0_0_13512617_18620.cpp:114:31: error: reference to 'fpos' is ambiguous
      printf("%d\n",query(root,fpos[x]));
                               ^
0_0_13512617_18620.cpp:20:15: note: candidates are: int fpos [50010]
 int e[maxn*2],fpos[maxn],lpos[maxn];
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:40:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_13512617_18620.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:112:11: note:                 template<class _StateT> class std::fpos
     class fpos
           ^
0_0_13512617_18620.cpp:119:16: error: reference to 'fpos' is ambiguous
    update(root,fpos[x],lpos[x],y);
                ^
0_0_13512617_18620.cpp:20:15: note: candidates are: int fpos [50010]
 int e[maxn*2],fpos[maxn],lpos[maxn];
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:40:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_13512617_18620.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/postypes.h:112:11: note:                 template<class _StateT> class std::fpos
     class fpos
           ^


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 07:37:58, Gzip enabled