Joi.cpp:72:11: error: redefinition of 'const int NN'
72 | const int NN = 1e4;
| ^~
Joi.cpp:16:11: note: 'const int NN' previously defined here
16 | const int NN = 1e4;
| ^~
Joi.cpp:74:5: error: redefinition of 'int d [2][10000]'
74 | int d[2][NN];
| ^
Joi.cpp:18:5: note: 'int d [2][10000]' previously declared here
18 | int d[2][NN];
| ^
Joi.cpp:75:13: error: redefinition of 'std::vector<int> g [10000]'
75 | vector<int> g[NN];
| ^
Joi.cpp:19:13: note: 'std::vector<int> g [10000]' previously declared here
19 | vector<int> g[NN];
| ^
Joi.cpp:77:5: error: redefinition of 'int get(int, int, int)'
77 | int get(int x, int k, int n) {
| ^~~
Joi.cpp:21:5: note: 'int get(int, int, int)' previously defined here
21 | int get(int x, int k, int n) {
| ^~~
Joi.cpp:101:6: error: redefinition of 'void Joi(int, int, int*, int*, long long int, int)'
101 | void Joi(int N, int M, int A[], int B[], long long X, int T) {
| ^~~
Joi.cpp:45:6: note: 'void Joi(int, int, int*, int*, long long int, int)' previously defined here
45 | void Joi(int N, int M, int A[], int B[], long long X, int T) {
| ^~~
Ioi.cpp: In function 'long long int Ioi(int, int, int*, int*, int, int, int)':
Ioi.cpp:59:66: warning: division by zero [-Wdiv-by-zero]
59 | if ((a != 0 || b != N - 1) && (a != N - 1 || b != 0)) cout << 5 / 0;
| ~~^~~