Joi.cpp:11:24: warning: 'd' defined but not used [-Wunused-variable]
static int used[maxn], d[maxn];
^
Ioi.cpp: In function 'long long int Ioi(int, int, int*, int*, int, int, int)':
Ioi.cpp:41:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < vec.size(); i++) {
~~^~~~~~~~~~~~
Ioi.cpp:50:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = ind; i < vec.size(); i++) {
~~^~~~~~~~~~~~
Ioi.cpp:59:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = ind; i < vec.size(); i++) {
~~^~~~~~~~~~~~
Ioi.cpp:60:11: warning: unused variable 'prv' [-Wunused-variable]
int prv = S.size();
^~~
Ioi.cpp: At global scope:
Ioi.cpp:10:12: warning: 'pr' defined but not used [-Wunused-variable]
static int pr[maxn], used[maxn], d[maxn];
^~