toll.cpp: In function 'int32_t main()':
toll.cpp:19:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
19 | #define FOR(i, a, b) for (int (i) = a; (i) <= (b); i++)
| ^
toll.cpp:42:5: note: in expansion of macro 'FOR'
42 | FOR(i, 1, m) {
| ^~~
toll.cpp:19:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
19 | #define FOR(i, a, b) for (int (i) = a; (i) <= (b); i++)
| ^
toll.cpp:47:5: note: in expansion of macro 'FOR'
47 | FOR(i, 0, 15) {
| ^~~
toll.cpp:19:31: warning: unnecessary parentheses in declaration of 'v' [-Wparentheses]
19 | #define FOR(i, a, b) for (int (i) = a; (i) <= (b); i++)
| ^
toll.cpp:48:9: note: in expansion of macro 'FOR'
48 | FOR(v, 0, n - 1) {
| ^~~
toll.cpp:19:31: warning: unnecessary parentheses in declaration of 'x' [-Wparentheses]
19 | #define FOR(i, a, b) for (int (i) = a; (i) <= (b); i++)
| ^
toll.cpp:49:13: note: in expansion of macro 'FOR'
49 | FOR(x, 0, k - 1) { // sau khi nhảy sẽ ở vị trí x trong nhóm đó
| ^~~
toll.cpp:19:31: warning: unnecessary parentheses in declaration of 'j' [-Wparentheses]
19 | #define FOR(i, a, b) for (int (i) = a; (i) <= (b); i++)
| ^
toll.cpp:50:17: note: in expansion of macro 'FOR'
50 | FOR(j, 0, k - 1) {
| ^~~
toll.cpp:51:25: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
51 | auto[b, t] = down[i][v][j];
| ^
toll.cpp: In lambda function:
toll.cpp:19:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
19 | #define FOR(i, a, b) for (int (i) = a; (i) <= (b); i++)
| ^
toll.cpp:67:13: note: in expansion of macro 'FOR'
67 | FOR(i, 0, 16) {
| ^~~
toll.cpp:19:31: warning: unnecessary parentheses in declaration of 'x' [-Wparentheses]
19 | #define FOR(i, a, b) for (int (i) = a; (i) <= (b); i++)
| ^
toll.cpp:72:25: note: in expansion of macro 'FOR'
72 | FOR(x, 0, k - 1) {
| ^~~
toll.cpp: In function 'int32_t main()':
toll.cpp:19:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
19 | #define FOR(i, a, b) for (int (i) = a; (i) <= (b); i++)
| ^
toll.cpp:88:5: note: in expansion of macro 'FOR'
88 | FOR(i, 1, q) {
| ^~~
toll.cpp:35:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
35 | freopen("hi.inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
toll.cpp:36:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | freopen("hi.txt", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
toll.cpp:37:15: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
37 | freopen("hi.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~