Submission #00233


ソースコード

ステータス

項目 データ
問題 0007 - かえるぴょんぴょん
ユーザー名 ei1428
投稿日時 2015-07-24 12:57:58
言語 C++11
状態 Compile Error
得点 0
ソースコード長 1256 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./233.cpp: 関数 ‘void init(int)’ 内:
./233.cpp:16:5: エラー: reference to ‘rank’ is ambiguous
     rank[i] = 0;
     ^
./233.cpp:10:5: 備考: 候補: int rank [200010]
 int rank[200010];
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/move.h:57:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_pair.h:59,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:64,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/istream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/sstream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/complex:45,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ccomplex:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:52,
                 from ./233.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/type_traits:1415:12: 備考:       template<class> struct std::rank
     struct rank
            ^
./233.cpp: 関数 ‘void unite(int, int)’ 内:
./233.cpp:25:6: エラー: reference to ‘rank’ is ambiguous
   if(rank[x] < rank[y]){
      ^
./233.cpp:10:5: 備考: 候補: int rank [200010]
 int rank[200010];
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/move.h:57:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_pair.h:59,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:64,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/istream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/sstream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/complex:45,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ccomplex:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:52,
                 from ./233.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/type_traits:1415:12: 備考:       template<class> struct std::rank
     struct rank
            ^
./233.cpp:25:16: エラー: reference to ‘rank’ is ambiguous
   if(rank[x] < rank[y]){
                ^
./233.cpp:10:5: 備考: 候補: int rank [200010]
 int rank[200010];
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/move.h:57:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_pair.h:59,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:64,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/istream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/sstream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/complex:45,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ccomplex:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:52,
                 from ./233.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/type_traits:1415:12: 備考:       template<class> struct std::rank
     struct rank
            ^
./233.cpp:31:6: エラー: reference to ‘rank’ is ambiguous
   if(rank[x] == rank[y]) rank[x]++;
      ^
./233.cpp:10:5: 備考: 候補: int rank [200010]
 int rank[200010];
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/move.h:57:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_pair.h:59,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:64,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/istream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/sstream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/complex:45,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ccomplex:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:52,
                 from ./233.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/type_traits:1415:12: 備考:       template<class> struct std::rank
     struct rank
            ^
./233.cpp:31:17: エラー: reference to ‘rank’ is ambiguous
   if(rank[x] == rank[y]) rank[x]++;
                 ^
./233.cpp:10:5: 備考: 候補: int rank [200010]
 int rank[200010];
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/move.h:57:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_pair.h:59,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:64,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/istream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/sstream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/complex:45,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ccomplex:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:52,
                 from ./233.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/type_traits:1415:12: 備考:       template<class> struct std::rank
     struct rank
            ^
./233.cpp:31:26: エラー: reference to ‘rank’ is ambiguous
   if(rank[x] == rank[y]) rank[x]++;
                          ^
./233.cpp:10:5: 備考: 候補: int rank [200010]
 int rank[200010];
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/move.h:57:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_pair.h:59,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:64,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/istream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/sstream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/complex:45,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ccomplex:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:52,
                 from ./233.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/type_traits:1415:12: 備考:       template<class> struct std::rank
     struct rank
            ^

セット

セット 得点 Cases

テストケース

ファイル名 状態 実行時間 メモリ使用量 #