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_38765166_2192.cpp: In function 'int check(int)':
0_0_38765166_2192.cpp:17:51: error: reference to 'identity' is ambiguous
   17 |                         if(killer[last][j]!=last&&identity[killer[last][j]]!=-1)
      |                                                   ^~~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/iterator_concepts.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_types.h:71,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_construct.h:61,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/char_traits.h:57,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:42,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
                 from 0_0_38765166_2192.cpp:2:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_cmp.h:47:10: note: candidates are: 'struct std::identity'
   47 |   struct identity
      |          ^~~~~~~~
0_0_38765166_2192.cpp:9:5: note:                 'int identity [35]'
    9 | int identity[N];
      |     ^~~~~~~~
0_0_38765166_2192.cpp: In function 'void kill(int, int)':
0_0_38765166_2192.cpp:29:41: error: reference to 'identity' is ambiguous
   29 |                 if(killer[gun][j]!=gun&&identity[killer[gun][j]]!=-1)
      |                                         ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_cmp.h:47:10: note: candidates are: 'struct std::identity'
   47 |   struct identity
      |          ^~~~~~~~
0_0_38765166_2192.cpp:9:5: note:                 'int identity [35]'
    9 | int identity[N];
      |     ^~~~~~~~
0_0_38765166_2192.cpp:31:28: error: reference to 'identity' is ambiguous
   31 |                         if(identity[killer[gun][j]]==1)
      |                            ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_cmp.h:47:10: note: candidates are: 'struct std::identity'
   47 |   struct identity
      |          ^~~~~~~~
0_0_38765166_2192.cpp:9:5: note:                 'int identity [35]'
    9 | int identity[N];
      |     ^~~~~~~~
0_0_38765166_2192.cpp:36:25: error: reference to 'identity' is ambiguous
   36 |                         identity[killer[gun][j]]=-1;
      |                         ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_cmp.h:47:10: note: candidates are: 'struct std::identity'
   47 |   struct identity
      |          ^~~~~~~~
0_0_38765166_2192.cpp:9:5: note:                 'int identity [35]'
    9 | int identity[N];
      |     ^~~~~~~~
0_0_38765166_2192.cpp: In function 'int main()':
0_0_38765166_2192.cpp:63:30: error: reference to 'identity' is ambiguous
   63 |                         cin>>identity[i];
      |                              ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_cmp.h:47:10: note: candidates are: 'struct std::identity'
   47 |   struct identity
      |          ^~~~~~~~
0_0_38765166_2192.cpp:9:5: note:                 'int identity [35]'
    9 | int identity[N];
      |     ^~~~~~~~
0_0_38765166_2192.cpp:64:28: error: reference to 'identity' is ambiguous
   64 |                         if(identity[i]==1)
      |                            ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_cmp.h:47:10: note: candidates are: 'struct std::identity'
   47 |   struct identity
      |          ^~~~~~~~
0_0_38765166_2192.cpp:9:5: note:                 'int identity [35]'
    9 | int identity[N];
      |     ^~~~~~~~
0_0_38765166_2192.cpp:84:24: error: reference to 'identity' is ambiguous
   84 |                 memset(identity,0,sizeof(identity));
      |                        ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_cmp.h:47:10: note: candidates are: 'struct std::identity'
   47 |   struct identity
      |          ^~~~~~~~
0_0_38765166_2192.cpp:9:5: note:                 'int identity [35]'
    9 | int identity[N];
      |     ^~~~~~~~
0_0_38765166_2192.cpp:84:42: error: reference to 'identity' is ambiguous
   84 |                 memset(identity,0,sizeof(identity));
      |                                          ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_cmp.h:47:10: note: candidates are: 'struct std::identity'
   47 |   struct identity
      |          ^~~~~~~~
0_0_38765166_2192.cpp:9:5: note:                 'int identity [35]'
    9 | int identity[N];
      |     ^~~~~~~~


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-26 12:10:59, Gzip enabled