cook.cpp: In function 'int main()':
cook.cpp:63:59: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
63 | if (h != h_ && h != pp[h_] && (j == n || j - i >= l && j - i <= r))
| ~~~~~~~~~~~^~~~~~~~~~~~~
cook.cpp:11:48: warning: unused variable 'dq' [-Wunused-variable]
11 | static int ss[K][N + 1], pp[K], dp[K][N + 1], dq[K][N + 1], qu[K][N + 1], head[K], cnt[K];
| ^~
cook.cpp:11:62: warning: unused variable 'qu' [-Wunused-variable]
11 | static int ss[K][N + 1], pp[K], dp[K][N + 1], dq[K][N + 1], qu[K][N + 1], head[K], cnt[K];
| ^~
cook.cpp:11:76: warning: unused variable 'head' [-Wunused-variable]
11 | static int ss[K][N + 1], pp[K], dp[K][N + 1], dq[K][N + 1], qu[K][N + 1], head[K], cnt[K];
| ^~~~
cook.cpp:11:85: warning: unused variable 'cnt' [-Wunused-variable]
11 | static int ss[K][N + 1], pp[K], dp[K][N + 1], dq[K][N + 1], qu[K][N + 1], head[K], cnt[K];
| ^~~
cook.cpp:12:24: warning: unused variable 'h1' [-Wunused-variable]
12 | int n, k, l, r, t, h, h1, h2, h3, h_, i, j, ans;
| ^~
cook.cpp:12:28: warning: unused variable 'h2' [-Wunused-variable]
12 | int n, k, l, r, t, h, h1, h2, h3, h_, i, j, ans;
| ^~
cook.cpp:12:32: warning: unused variable 'h3' [-Wunused-variable]
12 | int n, k, l, r, t, h, h1, h2, h3, h_, i, j, ans;
| ^~
cook.cpp:14:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf("%d%d%d%d%d", &k, &n, &l, &r, &t);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cook.cpp:17:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | scanf("%d", &ss[h][i]), ss[h][i] += ss[h][i - 1];
| ~~~~~^~~~~~~~~~~~~~~~~
cook.cpp:19:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | scanf("%d", &pp[h]), pp[h]--;
| ~~~~~^~~~~~~~~~~~~~
cook.cpp: At global scope:
cook.cpp:11:85: warning: 'cnt' defined but not used [-Wunused-variable]
11 | static int ss[K][N + 1], pp[K], dp[K][N + 1], dq[K][N + 1], qu[K][N + 1], head[K], cnt[K];
| ^~~
cook.cpp:11:76: warning: 'head' defined but not used [-Wunused-variable]
11 | static int ss[K][N + 1], pp[K], dp[K][N + 1], dq[K][N + 1], qu[K][N + 1], head[K], cnt[K];
| ^~~~
cook.cpp:11:62: warning: 'qu' defined but not used [-Wunused-variable]
11 | static int ss[K][N + 1], pp[K], dp[K][N + 1], dq[K][N + 1], qu[K][N + 1], head[K], cnt[K];
| ^~
cook.cpp:11:48: warning: 'dq' defined but not used [-Wunused-variable]
11 | static int ss[K][N + 1], pp[K], dp[K][N + 1], dq[K][N + 1], qu[K][N + 1], head[K], cnt[K];
| ^~