Submission #00380


ソースコード

ステータス

項目 データ
問題 0005 - スニーカーマン
ユーザー名 kotatsugame
投稿日時 2017-01-29 23:26:41
言語 C++11
状態 Compile Error
得点 0
ソースコード長 1021 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp: In function ‘int main()’:
./Main.cpp:28:22: error: no matching function for call to ‘begin()’
         sort(G,begin(),G.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/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/initializer_list:89:5: note: candidate: template<class _Tp> constexpr const _Tp* std::begin(std::initializer_list<_Tp>)
     begin(initializer_list<_Tp> __ils) noexcept
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/initializer_list:89:5: note:   template argument deduction/substitution failed:
./Main.cpp:28:22: note:   candidate expects 1 argument, 0 provided
         sort(G,begin(),G.end());
                      ^
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/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:48:5: note: candidate: template<class _Container> decltype (__cont.begin()) std::begin(_Container&)
     begin(_Container& __cont) -> decltype(__cont.begin())
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:48:5: note:   template argument deduction/substitution failed:
./Main.cpp:28:22: note:   candidate expects 1 argument, 0 provided
         sort(G,begin(),G.end());
                      ^
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/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:58:5: note: candidate: template<class _Container> decltype (__cont.begin()) std::begin(const _Container&)
     begin(const _Container& __cont) -> decltype(__cont.begin())
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:58:5: note:   template argument deduction/substitution failed:
./Main.cpp:28:22: note:   candidate expects 1 argument, 0 provided
         sort(G,begin(),G.end());
                      ^
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/ostream:38,
                 from /usr/local/gcc-5.1.0/include/c++/5.1.0/iostream:39,
                 from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:87:5: note: candidate: template<class _Tp, long unsigned int _Nm> _Tp* std::begin(_Tp (&)[_Nm])
     begin(_Tp (&__arr)[_Nm])
     ^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/range_access.h:87:5: note:   template argument deduction/substitution failed:
./Main.cpp:28:22: note:   candidate expects 1 argument, 0 provided
         sort(G,begin(),G.end());
                      ^

セット

セット 得点 Cases

テストケース

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