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_39729122_18867.cpp: In function 'int getSG(int)':
0_0_39729122_18867.cpp:16:36: error: reference to 'set' is ambiguous
   16 |                 int temp = value - set[i];
      |                                    ^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/set:63,
                 from .\stdc++.h:158:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:94:11: note: candidates are: 'template<class _Key, class _Compare, class _Alloc> class std::set'
   94 |     class set
      |           ^~~
0_0_39729122_18867.cpp:6:5: note:                 'int set [101]'
    6 | int set[101];
      |     ^~~
0_0_39729122_18867.cpp: In function 'int main()':
0_0_39729122_18867.cpp:40:30: error: reference to 'set' is ambiguous
   40 |                         cin>>set[i];
      |                              ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:94:11: note: candidates are: 'template<class _Key, class _Compare, class _Alloc> class std::set'
   94 |     class set
      |           ^~~
0_0_39729122_18867.cpp:6:5: note:                 'int set [101]'
    6 | int set[101];
      |     ^~~
0_0_39729122_18867.cpp:42:14: error: reference to 'set' is ambiguous
   42 |         sort(set,set+setNum);
      |              ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:94:11: note: candidates are: 'template<class _Key, class _Compare, class _Alloc> class std::set'
   94 |     class set
      |           ^~~
0_0_39729122_18867.cpp:6:5: note:                 'int set [101]'
    6 | int set[101];
      |     ^~~
0_0_39729122_18867.cpp:42:18: error: reference to 'set' is ambiguous
   42 |         sort(set,set+setNum);
      |                  ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:94:11: note: candidates are: 'template<class _Key, class _Compare, class _Alloc> class std::set'
   94 |     class set
      |           ^~~
0_0_39729122_18867.cpp:6:5: note:                 'int set [101]'
    6 | int set[101];
      |     ^~~


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-30 19:13:26, Gzip enabled