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_36689707_12481.cpp: In function 'void fir()':
0_0_36689707_12481.cpp:22:13: error: reference to 'fpos' is ambiguous
 void fir() {fpos[fi]=(fpos[fi]+1)%sz[fi]; fi=fi%n+1;}
             ^
0_0_36689707_12481.cpp:10:5: note: candidates are: int fpos [120]
 int fpos[120], spos[120], c[30], sz[120];
     ^
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_36689707_12481.cpp:4:
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_36689707_12481.cpp:22:23: error: reference to 'fpos' is ambiguous
 void fir() {fpos[fi]=(fpos[fi]+1)%sz[fi]; fi=fi%n+1;}
                       ^
0_0_36689707_12481.cpp:10:5: note: candidates are: int fpos [120]
 int fpos[120], spos[120], c[30], sz[120];
     ^
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_36689707_12481.cpp:4:
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_36689707_12481.cpp: In function 'int F()':
0_0_36689707_12481.cpp:25:23: error: reference to 'fpos' is ambiguous
 int F() {return s[fi][fpos[fi]]-'a';}
                       ^
0_0_36689707_12481.cpp:10:5: note: candidates are: int fpos [120]
 int fpos[120], spos[120], c[30], sz[120];
     ^
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_36689707_12481.cpp:4:
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_36689707_12481.cpp: In function 'int main()':
0_0_36689707_12481.cpp:40:35: error: reference to 'fpos' is ambiguous
   for(int i=1; i<=n; ++i) spos[i]=fpos[i]=0; se=fi=1;
                                   ^
0_0_36689707_12481.cpp:10:5: note: candidates are: int fpos [120]
 int fpos[120], spos[120], c[30], sz[120];
     ^
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_36689707_12481.cpp:4:
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-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001001(s) query 1, Server time : 2025-02-18 18:54:13, Gzip enabled