Submission #00315
ソースコード
ステータス
項目 |
データ |
問題 |
0016 - シゲソート |
ユーザー名 |
Arumakan_ei1727
|
投稿日時 |
2019-05-11 19:10:13 |
言語 |
C++14 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
2142 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp:42:39: error: redefinition of ‘template<class A, class B> bool chmax(A&, const B&)’
template<class A, class B>inline bool chmax(A &a, const B &b){return b>a ? a=b,1 : 0;}
^~~~~
./Main.cpp:8:39: note: ‘template<class A, class B> bool chmax(A&, const B&)’ previously declared here
template<class A, class B>inline bool chmax(A &a, const B &b){return b>a ? a=b,1 : 0;}
^~~~~
./Main.cpp:43:39: error: redefinition of ‘template<class A, class B> bool chmin(A&, const B&)’
template<class A, class B>inline bool chmin(A &a, const B &b){return b<a ? a=b,1 : 0;}
^~~~~
./Main.cpp:9:39: note: ‘template<class A, class B> bool chmin(A&, const B&)’ previously declared here
template<class A, class B>inline bool chmin(A &a, const B &b){return b<a ? a=b,1 : 0;}
^~~~~
./Main.cpp:44:15: error: redefinition of ‘constexpr const int INF’
constexpr int INF = 0x3f3f3f3f;
^~~
./Main.cpp:10:15: note: ‘constexpr const int INF’ previously defined here
constexpr int INF = 0x3f3f3f3f;
^~~
./Main.cpp:45:15: error: redefinition of ‘constexpr const i64 LINF’
constexpr i64 LINF = 0x3f3f3f3f3f3f3f3fLL;
^~~~
./Main.cpp:11:15: note: ‘constexpr const i64 LINF’ previously defined here
constexpr i64 LINF = 0x3f3f3f3f3f3f3f3fLL;
^~~~
./Main.cpp:46:15: error: redefinition of ‘constexpr const int MOD’
constexpr int MOD = int(1e9) + 7;
^~~
./Main.cpp:12:15: note: ‘constexpr const int MOD’ previously defined here
constexpr int MOD = int(1e9) + 7;
^~~
./Main.cpp:48:8: error: redefinition of ‘struct UnionFind’
struct UnionFind {
^~~~~~~~~
./Main.cpp:14:8: note: previous definition of ‘struct UnionFind’
struct UnionFind {
^~~~~~~~~
./Main.cpp:63:8: error: redefinition of ‘int main()’
signed main()
^~~~
./Main.cpp:26:8: note: ‘int main()’ previously defined here
signed main()
^~~~
セット
テストケース