Submission #00178
ソースコード
ステータス
項目 |
データ |
問題 |
0005 - IOI饅頭 |
ユーザー名 |
ei1333
|
投稿日時 |
2015-12-02 18:11:04 |
言語 |
C++11 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
2279 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:54:22: error: no matching function for call to ‘min(int64&, int)’
dp[min(j, 10000)]=min(dp[min(j, 10000)],dp[j-boxs[i].F]+boxs[i].S);
^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39:0,
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 ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
min(const _Tp& __a, const _Tp& __b)
^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed:
./Main.cpp:54:22: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’)
dp[min(j, 10000)]=min(dp[min(j, 10000)],dp[j-boxs[i].F]+boxs[i].S);
^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39:0,
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 ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:243:5: note: candidate: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed:
./Main.cpp:54:22: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’)
dp[min(j, 10000)]=min(dp[min(j, 10000)],dp[j-boxs[i].F]+boxs[i].S);
^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/algorithm:62:0,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:64,
from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:3445:5: note: candidate: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)
min(initializer_list<_Tp> __l)
^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:3445:5: note: template argument deduction/substitution failed:
./Main.cpp:54:22: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’
dp[min(j, 10000)]=min(dp[min(j, 10000)],dp[j-boxs[i].F]+boxs[i].S);
^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/algorithm:62:0,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:64,
from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:3451:5: note: candidate: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)
min(initializer_list<_Tp> __l, _Compare __comp)
^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:3451:5: note: template argument deduction/substitution failed:
./Main.cpp:54:22: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’
dp[min(j, 10000)]=min(dp[min(j, 10000)],dp[j-boxs[i].F]+boxs[i].S);
^
./Main.cpp:54:44: error: no matching function for call to ‘min(int64&, int)’
dp[min(j, 10000)]=min(dp[min(j, 10000)],dp[j-boxs[i].F]+boxs[i].S);
^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39:0,
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 ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:195:5: note: candidate: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
min(const _Tp& __a, const _Tp& __b)
^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:195:5: note: template argument deduction/substitution failed:
./Main.cpp:54:44: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’)
dp[min(j, 10000)]=min(dp[min(j, 10000)],dp[j-boxs[i].F]+boxs[i].S);
^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/char_traits.h:39:0,
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 ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:243:5: note: candidate: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algobase.h:243:5: note: template argument deduction/substitution failed:
./Main.cpp:54:44: note: deduced conflicting types for parameter ‘const _Tp’ (‘long long int’ and ‘int’)
dp[min(j, 10000)]=min(dp[min(j, 10000)],dp[j-boxs[i].F]+boxs[i].S);
^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/algorithm:62:0,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:64,
from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:3445:5: note: candidate: template<class _Tp> _Tp std::min(std::initializer_list<_Tp>)
min(initializer_list<_Tp> __l)
^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:3445:5: note: template argument deduction/substitution failed:
./Main.cpp:54:44: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’
dp[min(j, 10000)]=min(dp[min(j, 10000)],dp[j-boxs[i].F]+boxs[i].S);
^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/algorithm:62:0,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/stdc++.h:64,
from ./Main.cpp:1:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:3451:5: note: candidate: template<class _Tp, class _Compare> _Tp std::min(std::initializer_list<_Tp>, _Compare)
min(initializer_list<_Tp> __l, _Compare __comp)
^
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:3451:5: note: template argument deduction/substitution failed:
./Main.cpp:54:44: note: mismatched types ‘std::initializer_list<_Tp>’ and ‘long long int’
dp[min(j, 10000)]=min(dp[min(j, 10000)],dp[j-boxs[i].F]+boxs[i].S);
^
セット
テストケース