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_15596239_13447.cpp: In function 'void solve(Card*, int)':
0_0_15596239_13447.cpp:101:10: error: reference to 'count' is ambiguous
     if(x<count)
          ^
0_0_15596239_13447.cpp:36:14: note: candidates are: int count
 int flag[15],count,value[15], solve_flag[10];
              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15596239_13447.cpp:13:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3947:5: note:                 template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)
     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
     ^
0_0_15596239_13447.cpp: In function 'int main()':
0_0_15596239_13447.cpp:115:5: error: reference to 'count' is ambiguous
     count=0;
     ^
0_0_15596239_13447.cpp:36:14: note: candidates are: int count
 int flag[15],count,value[15], solve_flag[10];
              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15596239_13447.cpp:13:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3947:5: note:                 template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)
     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
     ^
0_0_15596239_13447.cpp:118:21: error: reference to 'count' is ambiguous
         if(c=='\n'||count>9)
                     ^
0_0_15596239_13447.cpp:36:14: note: candidates are: int count
 int flag[15],count,value[15], solve_flag[10];
              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15596239_13447.cpp:13:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3947:5: note:                 template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)
     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
     ^
0_0_15596239_13447.cpp:121:13: error: reference to 'count' is ambiguous
             count=count-5;
             ^
0_0_15596239_13447.cpp:36:14: note: candidates are: int count
 int flag[15],count,value[15], solve_flag[10];
              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15596239_13447.cpp:13:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3947:5: note:                 template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)
     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
     ^
0_0_15596239_13447.cpp:121:19: error: reference to 'count' is ambiguous
             count=count-5;
                   ^
0_0_15596239_13447.cpp:36:14: note: candidates are: int count
 int flag[15],count,value[15], solve_flag[10];
              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15596239_13447.cpp:13:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3947:5: note:                 template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)
     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
     ^
0_0_15596239_13447.cpp:125:28: error: reference to 'count' is ambiguous
             for(int i=0; i<count; i++) printf("%c%c ",q[i].num,q[i].flower);
                            ^
0_0_15596239_13447.cpp:36:14: note: candidates are: int count
 int flag[15],count,value[15], solve_flag[10];
              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15596239_13447.cpp:13:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3947:5: note:                 template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)
     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
     ^
0_0_15596239_13447.cpp:137:13: error: reference to 'count' is ambiguous
             count=0;
             ^
0_0_15596239_13447.cpp:36:14: note: candidates are: int count
 int flag[15],count,value[15], solve_flag[10];
              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15596239_13447.cpp:13:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3947:5: note:                 template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)
     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
     ^
0_0_15596239_13447.cpp:146:16: error: reference to 'count' is ambiguous
             if(count<=4) p[count]=k;
                ^
0_0_15596239_13447.cpp:36:14: note: candidates are: int count
 int flag[15],count,value[15], solve_flag[10];
              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15596239_13447.cpp:13:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3947:5: note:                 template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)
     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
     ^
0_0_15596239_13447.cpp:146:28: error: reference to 'count' is ambiguous
             if(count<=4) p[count]=k;
                            ^
0_0_15596239_13447.cpp:36:14: note: candidates are: int count
 int flag[15],count,value[15], solve_flag[10];
              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15596239_13447.cpp:13:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3947:5: note:                 template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)
     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
     ^
0_0_15596239_13447.cpp:147:20: error: reference to 'count' is ambiguous
             else q[count-5]=k;
                    ^
0_0_15596239_13447.cpp:36:14: note: candidates are: int count
 int flag[15],count,value[15], solve_flag[10];
              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15596239_13447.cpp:13:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3947:5: note:                 template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)
     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
     ^
0_0_15596239_13447.cpp:148:13: error: reference to 'count' is ambiguous
             count++;
             ^
0_0_15596239_13447.cpp:36:14: note: candidates are: int count
 int flag[15],count,value[15], solve_flag[10];
              ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_15596239_13447.cpp:13:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3947:5: note:                 template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)
     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
     ^


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-24 22:02:43, Gzip enabled