Submission #00378
ソースコード
ステータス
項目 |
データ |
問題 |
0004 - railway |
ユーザー名 |
nii
|
投稿日時 |
2017-11-26 14:58:35 |
言語 |
C++ |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
1056 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:48:33: error: no matching function for call to ‘min(int&, long long int&)’
MIN=min(MIN,G[i][stack[j]]);
^
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/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/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:48:33: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘long long int’)
MIN=min(MIN,G[i][stack[j]]);
^
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/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/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:48:33: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘long long int’)
MIN=min(MIN,G[i][stack[j]]);
^
セット
テストケース