Submission #00066


ソースコード

ステータス

項目 データ
問題 0009 - 強欲な壺
ユーザー名 SPAAcup(ei2324)
投稿日時 2023-07-13 18:12:09
言語 C++11
状態 Compile Error
得点 0
ソースコード長 363 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp: In function ‘int main()’:
./Main.cpp:17:18: error: no matching function for call to ‘begin()’
     sort(a,begin(),a,end());
                  ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:36,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.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-8.2.0/include/c++/8.2.0/initializer_list:89:5: note:   template argument deduction/substitution failed:
./Main.cpp:17:18: note:   candidate expects 1 argument, 0 provided
     sort(a,begin(),a,end());
                  ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.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-8.2.0/include/c++/8.2.0/bits/range_access.h:48:5: note:   template argument deduction/substitution failed:
./Main.cpp:17:18: note:   candidate expects 1 argument, 0 provided
     sort(a,begin(),a,end());
                  ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.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-8.2.0/include/c++/8.2.0/bits/range_access.h:58:5: note:   template argument deduction/substitution failed:
./Main.cpp:17:18: note:   candidate expects 1 argument, 0 provided
     sort(a,begin(),a,end());
                  ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.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-8.2.0/include/c++/8.2.0/bits/range_access.h:87:5: note:   template argument deduction/substitution failed:
./Main.cpp:17:18: note:   candidate expects 1 argument, 0 provided
     sort(a,begin(),a,end());
                  ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:95,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:1201:5: note: candidate: ‘template<class _Tp> _Tp* std::begin(std::valarray<_Tp>&)’
     begin(valarray<_Tp>& __va)
     ^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:1201:5: note:   template argument deduction/substitution failed:
./Main.cpp:17:18: note:   candidate expects 1 argument, 0 provided
     sort(a,begin(),a,end());
                  ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:95,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:1211:5: note: candidate: ‘template<class _Tp> const _Tp* std::begin(const std::valarray<_Tp>&)’
     begin(const valarray<_Tp>& __va)
     ^~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:1211:5: note:   template argument deduction/substitution failed:
./Main.cpp:17:18: note:   candidate expects 1 argument, 0 provided
     sort(a,begin(),a,end());
                  ^
./Main.cpp:17:26: error: no matching function for call to ‘end()’
     sort(a,begin(),a,end());
                          ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:36,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/initializer_list:99:5: note: candidate: ‘template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)’
     end(initializer_list<_Tp> __ils) noexcept
     ^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/initializer_list:99:5: note:   template argument deduction/substitution failed:
./Main.cpp:17:26: note:   candidate expects 1 argument, 0 provided
     sort(a,begin(),a,end());
                          ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:68:5: note: candidate: ‘template<class _Container> decltype (__cont.end()) std::end(_Container&)’
     end(_Container& __cont) -> decltype(__cont.end())
     ^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:68:5: note:   template argument deduction/substitution failed:
./Main.cpp:17:26: note:   candidate expects 1 argument, 0 provided
     sort(a,begin(),a,end());
                          ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:78:5: note: candidate: ‘template<class _Container> decltype (__cont.end()) std::end(const _Container&)’
     end(const _Container& __cont) -> decltype(__cont.end())
     ^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:78:5: note:   template argument deduction/substitution failed:
./Main.cpp:17:26: note:   candidate expects 1 argument, 0 provided
     sort(a,begin(),a,end());
                          ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/string:51,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/locale_classes.h:40,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/ios_base.h:41,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ios:42,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/istream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/sstream:38,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/complex:45,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/ccomplex:39,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:52,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:97:5: note: candidate: ‘template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])’
     end(_Tp (&__arr)[_Nm])
     ^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/range_access.h:97:5: note:   template argument deduction/substitution failed:
./Main.cpp:17:26: note:   candidate expects 1 argument, 0 provided
     sort(a,begin(),a,end());
                          ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:95,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:1221:5: note: candidate: ‘template<class _Tp> _Tp* std::end(std::valarray<_Tp>&)’
     end(valarray<_Tp>& __va)
     ^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:1221:5: note:   template argument deduction/substitution failed:
./Main.cpp:17:26: note:   candidate expects 1 argument, 0 provided
     sort(a,begin(),a,end());
                          ^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:95,
                 from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:1231:5: note: candidate: ‘template<class _Tp> const _Tp* std::end(const std::valarray<_Tp>&)’
     end(const valarray<_Tp>& __va)
     ^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/valarray:1231:5: note:   template argument deduction/substitution failed:
./Main.cpp:17:26: note:   candidate expects 1 argument, 0 provided
     sort(a,begin(),a,end());
                          ^

セット

セット 得点 Cases

テストケース

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