foo.cc: In function 'int main()':
foo.cc:36:2: error: reference to 'rank' is ambiguous
rank[0]+=1;
^~~~
foo.cc:26:4: note: candidates are: int rank [35000]
ll rank[35000];
^~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/nested_exception.h:40,
from /usr/include/c++/7/exception:143,
from /usr/include/c++/7/ios:39,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:1:
/usr/include/c++/7/type_traits:1468:12: note: template<class> struct std::rank
struct rank
^~~~
foo.cc:52:3: error: reference to 'rank' is ambiguous
rank[c[i]]+=1;
^~~~
foo.cc:26:4: note: candidates are: int rank [35000]
ll rank[35000];
^~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/nested_exception.h:40,
from /usr/include/c++/7/exception:143,
from /usr/include/c++/7/ios:39,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:1:
/usr/include/c++/7/type_traits:1468:12: note: template<class> struct std::rank
struct rank
^~~~
foo.cc:56:9: error: reference to 'rank' is ambiguous
cout<<rank[i]<<endl;
^~~~
foo.cc:26:4: note: candidates are: int rank [35000]
ll rank[35000];
^~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/nested_exception.h:40,
from /usr/include/c++/7/exception:143,
from /usr/include/c++/7/ios:39,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from foo.cc:1:
/usr/include/c++/7/type_traits:1468:12: note: template<class> struct std::rank
struct rank
^~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。