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_22358211_14886.cpp:16:1: error: reference to 'tuple' is ambiguous
 tuple tmp_rank[maxn];
 ^
0_0_22358211_14886.cpp:15:36: note: candidates are: typedef struct std::pair<std::pair<int, int>, int> tuple
 typedef pair<pair<int, int>, int > tuple;
                                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_22358211_14886.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:83:11: note:                 template<class ...> class std::tuple
     class tuple;
           ^
0_0_22358211_14886.cpp:16:1: error: 'tuple' does not name a type
 tuple tmp_rank[maxn];
 ^
0_0_22358211_14886.cpp:18:23: error: reference to 'tuple' is ambiguous
 bool tuple_less(const tuple& a, const tuple& b) {
                       ^
0_0_22358211_14886.cpp:15:36: note: candidates are: typedef struct std::pair<std::pair<int, int>, int> tuple
 typedef pair<pair<int, int>, int > tuple;
                                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_22358211_14886.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:83:11: note:                 template<class ...> class std::tuple
     class tuple;
           ^
0_0_22358211_14886.cpp:18:23: error: 'tuple' does not name a type
 bool tuple_less(const tuple& a, const tuple& b) {
                       ^
0_0_22358211_14886.cpp:18:39: error: reference to 'tuple' is ambiguous
 bool tuple_less(const tuple& a, const tuple& b) {
                                       ^
0_0_22358211_14886.cpp:15:36: note: candidates are: typedef struct std::pair<std::pair<int, int>, int> tuple
 typedef pair<pair<int, int>, int > tuple;
                                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_22358211_14886.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:83:11: note:                 template<class ...> class std::tuple
     class tuple;
           ^
0_0_22358211_14886.cpp:18:39: error: 'tuple' does not name a type
 bool tuple_less(const tuple& a, const tuple& b) {
                                       ^
0_0_22358211_14886.cpp: In function 'bool tuple_less(const int&, const int&)':
0_0_22358211_14886.cpp:19:11: error: request for member 'first' in 'a', which is of non-class type 'const int'
     if (a.first.first != b.first.first) {
           ^
0_0_22358211_14886.cpp:19:28: error: request for member 'first' in 'b', which is of non-class type 'const int'
     if (a.first.first != b.first.first) {
                            ^
0_0_22358211_14886.cpp:20:18: error: request for member 'first' in 'a', which is of non-class type 'const int'
         return a.first.first < b.first.first;
                  ^
0_0_22358211_14886.cpp:20:34: error: request for member 'first' in 'b', which is of non-class type 'const int'
         return a.first.first < b.first.first;
                                  ^
0_0_22358211_14886.cpp:21:18: error: request for member 'first' in 'a', which is of non-class type 'const int'
     } else if (a.first.second != b.first.second) {
                  ^
0_0_22358211_14886.cpp:21:36: error: request for member 'first' in 'b', which is of non-class type 'const int'
     } else if (a.first.second != b.first.second) {
                                    ^
0_0_22358211_14886.cpp:22:18: error: request for member 'first' in 'a', which is of non-class type 'const int'
         return a.first.second < b.first.second;
                  ^
0_0_22358211_14886.cpp:22:35: error: request for member 'first' in 'b', which is of non-class type 'const int'
         return a.first.second < b.first.second;
                                   ^
0_0_22358211_14886.cpp:24:18: error: request for member 'second' in 'a', which is of non-class type 'const int'
         return a.second < b.second;
                  ^
0_0_22358211_14886.cpp:24:29: error: request for member 'second' in 'b', which is of non-class type 'const int'
         return a.second < b.second;
                             ^
0_0_22358211_14886.cpp: In function 'void genRank(int)':
0_0_22358211_14886.cpp:36:9: error: reference to 'rank' is ambiguous
         rank[i] = input[i];
         ^
0_0_22358211_14886.cpp:10:5: note: candidates are: int rank [100020]
 int rank[maxn];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_22358211_14886.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_22358211_14886.cpp:37:17: error: reference to 'rank' is ambiguous
         sa[i] = rank[i];
                 ^
0_0_22358211_14886.cpp:10:5: note: candidates are: int rank [100020]
 int rank[maxn];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_22358211_14886.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_22358211_14886.cpp:42:13: error: 'tmp_rank' was not declared in this scope
             tmp_rank[i].first.first = rank[i];
             ^
0_0_22358211_14886.cpp:42:39: error: reference to 'rank' is ambiguous
             tmp_rank[i].first.first = rank[i];
                                       ^
0_0_22358211_14886.cpp:10:5: note: candidates are: int rank [100020]
 int rank[maxn];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_22358211_14886.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_22358211_14886.cpp:45:44: error: reference to 'rank' is ambiguous
                 tmp_rank[i].first.second = rank[i + foot_len];
                                            ^
0_0_22358211_14886.cpp:10:5: note: candidates are: int rank [100020]
 int rank[maxn];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_22358211_14886.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_22358211_14886.cpp:50:14: error: 'tmp_rank' was not declared in this scope
         sort(tmp_rank, tmp_rank + len, tuple_less);
              ^
0_0_22358211_14886.cpp:51:9: error: reference to 'rank' is ambiguous
         rank[tmp_rank[0].second] = 1;
         ^
0_0_22358211_14886.cpp:10:5: note: candidates are: int rank [100020]
 int rank[maxn];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_22358211_14886.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_22358211_14886.cpp:57:13: error: reference to 'rank' is ambiguous
             rank[tmp_rank[i].second] = cnt;
             ^
0_0_22358211_14886.cpp:10:5: note: candidates are: int rank [100020]
 int rank[maxn];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_22358211_14886.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::


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 17:24:20, Gzip enabled