Submission #00034
ソースコード
ステータス
項目 |
データ |
問題 |
0006 - 病気の山本くん |
ユーザー名 |
immunity
|
投稿日時 |
2020-07-09 17:03:28 |
言語 |
C++17 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
8709 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp:86:3: error: stray ‘#’ in program
};#include <bits/stdc++.h>
^
./Main.cpp:196:2: error: stray ‘#’ in program
}#include <bits/stdc++.h>
^
./Main.cpp:86:4: error: ‘include’ does not name a type
};#include <bits/stdc++.h>
^~~~~~~
./Main.cpp:123:6: error: redefinition of ‘template<class A, long unsigned int N, class T> void Fill(A (&)[N], const T&)’
void Fill(A (&array)[N], const T &val) { //多次元初期化
^~~~
./Main.cpp:38:6: note: ‘template<class A, long unsigned int N, class T> void Fill(A (&)[N], const T&)’ previously declared here
void Fill(A (&array)[N], const T &val) { //多次元初期化
^~~~
./Main.cpp:127:6: error: redefinition of ‘template<class A, class B> bool chmax(A&, const B&)’
bool chmax(A &a, const B &b) { //最大値更新 返り値はbool
^~~~~
./Main.cpp:42:6: note: ‘template<class A, class B> bool chmax(A&, const B&)’ previously declared here
bool chmax(A &a, const B &b) { //最大値更新 返り値はbool
^~~~~
./Main.cpp:135:6: error: redefinition of ‘template<class A, class B> bool chmin(A&, const B&)’
bool chmin(A &a, const B &b) { //最小値更新 返り値はbool
^~~~~
./Main.cpp:50:6: note: ‘template<class A, class B> bool chmin(A&, const B&)’ previously declared here
bool chmin(A &a, const B &b) { //最小値更新 返り値はbool
^~~~~
./Main.cpp:142:9: error: redefinition of ‘int64_t dx [4]’
int dx[4] = {1, 0, -1, 0};
^
./Main.cpp:57:5: note: ‘int64_t dx [4]’ previously defined here
int dx[4] = {1, 0, -1, 0};
^~
./Main.cpp:143:9: error: redefinition of ‘int64_t dy [4]’
int dy[4] = {0, 1, 0, -1};
^
./Main.cpp:58:5: note: ‘int64_t dy [4]’ previously defined here
int dy[4] = {0, 1, 0, -1};
^~
./Main.cpp:144:15: error: redefinition of ‘constexpr const int64_t INF’
constexpr int INF = 0x3f3f3f3f;
^~~
./Main.cpp:59:15: note: ‘constexpr const int64_t INF’ previously defined here
constexpr int INF = 0x3f3f3f3f;
^~~
./Main.cpp:145:15: error: redefinition of ‘constexpr const int64_t LINF’
constexpr int LINF = 0x3f3f3f3f3f3f3f3fLL;
^~~~
./Main.cpp:60:15: note: ‘constexpr const int64_t LINF’ previously defined here
constexpr int LINF = 0x3f3f3f3f3f3f3f3fLL;
^~~~
./Main.cpp:146:15: error: redefinition of ‘constexpr const int64_t mod1’
constexpr int mod1 = 1e9 + 7;
^~~~
./Main.cpp:61:15: note: ‘constexpr const int64_t mod1’ previously defined here
constexpr int mod1 = 1e9 + 7;
^~~~
./Main.cpp:147:15: error: redefinition of ‘constexpr const int64_t mod2’
constexpr int mod2 = 998244353;
^~~~
./Main.cpp:62:15: note: ‘constexpr const int64_t mod2’ previously defined here
constexpr int mod2 = 998244353;
^~~~
./Main.cpp:157:8: error: redefinition of ‘struct BIT<T>’
struct BIT {
^~~
./Main.cpp:72:8: note: previous definition of ‘struct BIT<T>’
struct BIT {
^~~
./Main.cpp:196:3: error: ‘include’ does not name a type
}#include <bits/stdc++.h>
^~~~~~~
./Main.cpp:233:6: error: redefinition of ‘template<class A, long unsigned int N, class T> void Fill(A (&)[N], const T&)’
void Fill(A (&array)[N], const T &val) { //多次元初期化
^~~~
./Main.cpp:38:6: note: ‘template<class A, long unsigned int N, class T> void Fill(A (&)[N], const T&)’ previously declared here
void Fill(A (&array)[N], const T &val) { //多次元初期化
^~~~
./Main.cpp:237:6: error: redefinition of ‘template<class A, class B> bool chmax(A&, const B&)’
bool chmax(A &a, const B &b) { //最大値更新 返り値はbool
^~~~~
./Main.cpp:42:6: note: ‘template<class A, class B> bool chmax(A&, const B&)’ previously declared here
bool chmax(A &a, const B &b) { //最大値更新 返り値はbool
^~~~~
./Main.cpp:245:6: error: redefinition of ‘template<class A, class B> bool chmin(A&, const B&)’
bool chmin(A &a, const B &b) { //最小値更新 返り値はbool
^~~~~
./Main.cpp:50:6: note: ‘template<class A, class B> bool chmin(A&, const B&)’ previously declared here
bool chmin(A &a, const B &b) { //最小値更新 返り値はbool
^~~~~
./Main.cpp:252:9: error: redefinition of ‘int64_t dx [4]’
int dx[4] = {1, 0, -1, 0};
^
./Main.cpp:57:5: note: ‘int64_t dx [4]’ previously defined here
int dx[4] = {1, 0, -1, 0};
^~
./Main.cpp:253:9: error: redefinition of ‘int64_t dy [4]’
int dy[4] = {0, 1, 0, -1};
^
./Main.cpp:58:5: note: ‘int64_t dy [4]’ previously defined here
int dy[4] = {0, 1, 0, -1};
^~
./Main.cpp:254:15: error: redefinition of ‘constexpr const int64_t INF’
constexpr int INF = 0x3f3f3f3f;
^~~
./Main.cpp:59:15: note: ‘constexpr const int64_t INF’ previously defined here
constexpr int INF = 0x3f3f3f3f;
^~~
./Main.cpp:255:15: error: redefinition of ‘constexpr const int64_t LINF’
constexpr int LINF = 0x3f3f3f3f3f3f3f3fLL;
^~~~
./Main.cpp:60:15: note: ‘constexpr const int64_t LINF’ previously defined here
constexpr int LINF = 0x3f3f3f3f3f3f3f3fLL;
^~~~
./Main.cpp:256:15: error: redefinition of ‘constexpr const int64_t mod1’
constexpr int mod1 = 1e9 + 7;
^~~~
./Main.cpp:61:15: note: ‘constexpr const int64_t mod1’ previously defined here
constexpr int mod1 = 1e9 + 7;
^~~~
./Main.cpp:257:15: error: redefinition of ‘constexpr const int64_t mod2’
constexpr int mod2 = 998244353;
^~~~
./Main.cpp:62:15: note: ‘constexpr const int64_t mod2’ previously defined here
constexpr int mod2 = 998244353;
^~~~
./Main.cpp:267:8: error: redefinition of ‘struct BIT<T>’
struct BIT {
^~~
./Main.cpp:72:8: note: previous definition of ‘struct BIT<T>’
struct BIT {
^~~
./Main.cpp:283:8: error: redefinition of ‘int main()’
signed main() {
^~~~
./Main.cpp:173:8: note: ‘int main()’ previously defined here
signed main() {
^~~~
./Main.cpp:308:8: error: redefinition of ‘int main()’
signed main() {
^~~~
./Main.cpp:173:8: note: ‘int main()’ previously defined here
signed main() {
^~~~
セット
テストケース