Submission #00055
ソースコード
ステータス
コンパイルメッセージ
./Main.cpp:61:41: 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, true); }
^~~~~
./Main.cpp:4:41: 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, true); }
^~~~~
./Main.cpp:62:41: 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, true); }
^~~~~
./Main.cpp:5:41: 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, true); }
^~~~~
./Main.cpp:72:11: error: redefinition of ‘const int INF’
const int INF = 1 << 30;
^~~
./Main.cpp:15:11: note: ‘const int INF’ previously defined here
const int INF = 1 << 30;
^~~
./Main.cpp:73:14: error: redefinition of ‘const int dx []’
const int dx[] = {1,0,-1,0,1,1,-1,-1};
^
./Main.cpp:16:11: note: ‘const int dx [8]’ previously defined here
const int dx[] = {1,0,-1,0,1,1,-1,-1};
^~
./Main.cpp:74:14: error: redefinition of ‘const int dy []’
const int dy[] = {0,-1,0,1,1,-1,-1,1};
^
./Main.cpp:17:11: note: ‘const int dy [8]’ previously defined here
const int dy[] = {0,-1,0,1,1,-1,-1,1};
^~
./Main.cpp:76:19: error: redefinition of ‘const long double PI’
const long double PI=3.14159265358979323846264338327950;
^~
./Main.cpp:19:19: note: ‘const long double PI’ previously defined here
const long double PI=3.14159265358979323846264338327950;
^~
./Main.cpp:77:5: error: redefinition of ‘int main()’
int main(){
^~~~
./Main.cpp:20:5: note: ‘int main()’ previously defined here
int main(){
^~~~
セット
テストケース