Submission #00155
ソースコード
ステータス
項目 |
データ |
問題 |
0009 - プログラミングコンテスト II |
ユーザー名 |
爆裂AUO
|
投稿日時 |
2017-09-06 17:25:45 |
言語 |
C++11 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
1010 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:16:5: error: reference to ‘rank’ is ambiguous
rank[i]=i;
^~~~
./Main.cpp:8:5: note: candidates are: int rank [100001]
int rank[100001];
^~~~
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/move.h:54:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/nested_exception.h:40,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/exception:143,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ios:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/istream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/sstream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/complex:45,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ccomplex:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/type_traits:1471:12: note: template<class> struct std::rank
struct rank
^~~~
./Main.cpp:22:10: error: reference to ‘rank’ is ambiguous
te[rank[t-1]].po+=p;
^~~~
./Main.cpp:8:5: note: candidates are: int rank [100001]
int rank[100001];
^~~~
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/move.h:54:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/nested_exception.h:40,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/exception:143,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ios:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/istream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/sstream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/complex:45,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ccomplex:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/type_traits:1471:12: note: template<class> struct std::rank
struct rank
^~~~
./Main.cpp:23:13: error: reference to ‘rank’ is ambiguous
for(j=rank[t-1];j>0;j--){
^~~~
./Main.cpp:8:5: note: candidates are: int rank [100001]
int rank[100001];
^~~~
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/move.h:54:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/nested_exception.h:40,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/exception:143,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ios:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/istream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/sstream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/complex:45,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ccomplex:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/type_traits:1471:12: note: template<class> struct std::rank
struct rank
^~~~
./Main.cpp:28:19: error: reference to ‘rank’ is ambiguous
int tem=rank[te[j].num];
^~~~
./Main.cpp:8:5: note: candidates are: int rank [100001]
int rank[100001];
^~~~
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/move.h:54:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/nested_exception.h:40,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/exception:143,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ios:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/istream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/sstream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/complex:45,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ccomplex:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/type_traits:1471:12: note: template<class> struct std::rank
struct rank
^~~~
./Main.cpp:29:11: error: reference to ‘rank’ is ambiguous
rank[te[j].num]=rank[te[j-1].num];
^~~~
./Main.cpp:8:5: note: candidates are: int rank [100001]
int rank[100001];
^~~~
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/move.h:54:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/nested_exception.h:40,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/exception:143,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ios:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/istream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/sstream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/complex:45,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ccomplex:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/type_traits:1471:12: note: template<class> struct std::rank
struct rank
^~~~
./Main.cpp:29:27: error: reference to ‘rank’ is ambiguous
rank[te[j].num]=rank[te[j-1].num];
^~~~
./Main.cpp:8:5: note: candidates are: int rank [100001]
int rank[100001];
^~~~
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/move.h:54:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/nested_exception.h:40,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/exception:143,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ios:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/istream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/sstream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/complex:45,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ccomplex:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/type_traits:1471:12: note: template<class> struct std::rank
struct rank
^~~~
./Main.cpp:30:11: error: reference to ‘rank’ is ambiguous
rank[te[j-1].num]=tem;
^~~~
./Main.cpp:8:5: note: candidates are: int rank [100001]
int rank[100001];
^~~~
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/move.h:54:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/nested_exception.h:40,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/exception:143,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ios:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/istream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/sstream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/complex:45,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ccomplex:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/type_traits:1471:12: note: template<class> struct std::rank
struct rank
^~~~
./Main.cpp:36:19: error: reference to ‘rank’ is ambiguous
int tem=rank[te[j].num];
^~~~
./Main.cpp:8:5: note: candidates are: int rank [100001]
int rank[100001];
^~~~
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/move.h:54:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/nested_exception.h:40,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/exception:143,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ios:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/istream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/sstream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/complex:45,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ccomplex:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/type_traits:1471:12: note: template<class> struct std::rank
struct rank
^~~~
./Main.cpp:37:11: error: reference to ‘rank’ is ambiguous
rank[te[j].num]=rank[te[j-1].num];
^~~~
./Main.cpp:8:5: note: candidates are: int rank [100001]
int rank[100001];
^~~~
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/move.h:54:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/nested_exception.h:40,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/exception:143,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ios:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/istream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/sstream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/complex:45,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ccomplex:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/type_traits:1471:12: note: template<class> struct std::rank
struct rank
^~~~
./Main.cpp:37:27: error: reference to ‘rank’ is ambiguous
rank[te[j].num]=rank[te[j-1].num];
^~~~
./Main.cpp:8:5: note: candidates are: int rank [100001]
int rank[100001];
^~~~
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/move.h:54:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/nested_exception.h:40,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/exception:143,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ios:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/istream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/sstream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/complex:45,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ccomplex:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/type_traits:1471:12: note: template<class> struct std::rank
struct rank
^~~~
./Main.cpp:38:11: error: reference to ‘rank’ is ambiguous
rank[te[j-1].num]=tem;
^~~~
./Main.cpp:8:5: note: candidates are: int rank [100001]
int rank[100001];
^~~~
In file included from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/move.h:54:0,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/bits/nested_exception.h:40,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/exception:143,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ios:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/istream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/sstream:38,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/complex:45,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/ccomplex:39,
from /usr/local/gcc-7.1.0/include/c++/7.1.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
from ./Main.cpp:1:
/usr/local/gcc-7.1.0/include/c++/7.1.0/type_traits:1471:12: note: template<class> struct std::rank
struct rank
^~~~
セット
テストケース