Submission #00063


ソースコード

ステータス

項目 データ
問題 0004 - VOCAL ANDROID
ユーザー名 P_ei1623
投稿日時 2016-08-12 10:50:16
言語 C++11
状態 Compile Error
得点 0
ソースコード長 869 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp: In function ‘int main()’:
./Main.cpp:29:5: error: reference to ‘end’ is ambiguous
     end=0;
     ^
./Main.cpp:12:5: note: candidates are: int end
 int end;
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:94:0,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/valarray:1226:5: note:                 template<class _Tp> const _Tp* std::end(const std::valarray<_Tp>&)
     end(const valarray<_Tp>& __va)
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/valarray:1216:5: note:                 template<class _Tp> _Tp* std::end(std::valarray<_Tp>&)
     end(valarray<_Tp>& __va)
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/string:51:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/ios_base.h:41,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:42,
                 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 ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:97:5: note:                 template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:36:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/string:51,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/ios_base.h:41,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:42,
                 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 ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
./Main.cpp:31:12: error: reference to ‘end’ is ambiguous
     ans[i]=end;
            ^
./Main.cpp:12:5: note: candidates are: int end
 int end;
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:94:0,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/valarray:1226:5: note:                 template<class _Tp> const _Tp* std::end(const std::valarray<_Tp>&)
     end(const valarray<_Tp>& __va)
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/valarray:1216:5: note:                 template<class _Tp> _Tp* std::end(std::valarray<_Tp>&)
     end(valarray<_Tp>& __va)
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/string:51:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/ios_base.h:41,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:42,
                 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 ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:97:5: note:                 template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:36:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/string:51,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/ios_base.h:41,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:42,
                 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 ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
./Main.cpp: In function ‘int dfs(int, int, int)’:
./Main.cpp:50:6: error: reference to ‘end’ is ambiguous
   if(end<c){
      ^
./Main.cpp:12:5: note: candidates are: int end
 int end;
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:94:0,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/valarray:1226:5: note:                 template<class _Tp> const _Tp* std::end(const std::valarray<_Tp>&)
     end(const valarray<_Tp>& __va)
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/valarray:1216:5: note:                 template<class _Tp> _Tp* std::end(std::valarray<_Tp>&)
     end(valarray<_Tp>& __va)
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/string:51:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/ios_base.h:41,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:42,
                 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 ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:97:5: note:                 template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:36:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/string:51,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/ios_base.h:41,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:42,
                 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 ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
./Main.cpp:51:5: error: reference to ‘end’ is ambiguous
     end=c;
     ^
./Main.cpp:12:5: note: candidates are: int end
 int end;
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:94:0,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/valarray:1226:5: note:                 template<class _Tp> const _Tp* std::end(const std::valarray<_Tp>&)
     end(const valarray<_Tp>& __va)
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/valarray:1216:5: note:                 template<class _Tp> _Tp* std::end(std::valarray<_Tp>&)
     end(valarray<_Tp>& __va)
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/string:51:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/ios_base.h:41,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:42,
                 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 ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:97:5: note:                 template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:36:0,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/string:51,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/ios_base.h:41,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/ios:42,
                 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 ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^

セット

セット 得点 Cases

テストケース

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