scales.cpp: In function 'bool check(std::bitset<720>, int)':
scales.cpp:45:23: warning: conversion from 'std::size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
45 | int cnt = bs.count();
| ~~~~~~~~^~
scales.cpp:54:44: warning: comparison of integer expressions of different signedness: 'std::size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
54 | for (Bitset &b: nxt) if (b.count() > pw3[turn - 1]) {
| ~~~~~~~~~~^~~~~~~~~~~~~~~
scales.cpp: In function 'void init(int)':
scales.cpp:13:48: warning: declaration of '_b' shadows a previous local [-Wshadow]
13 | #define FOR(i, a, b) for (int i = (a), _b = (b); i < _b; ++i)
| ^~
scales.cpp:81:18: note: in expansion of macro 'FOR'
81 | FOR(a, 1, 7) FOR(b, a + 1, 7) FOR(c, b + 1, 7) {
| ^~~
scales.cpp:13:48: note: shadowed declaration is here
13 | #define FOR(i, a, b) for (int i = (a), _b = (b); i < _b; ++i)
| ^~
scales.cpp:81:5: note: in expansion of macro 'FOR'
81 | FOR(a, 1, 7) FOR(b, a + 1, 7) FOR(c, b + 1, 7) {
| ^~~
scales.cpp:13:48: warning: declaration of '_b' shadows a previous local [-Wshadow]
13 | #define FOR(i, a, b) for (int i = (a), _b = (b); i < _b; ++i)
| ^~
scales.cpp:81:35: note: in expansion of macro 'FOR'
81 | FOR(a, 1, 7) FOR(b, a + 1, 7) FOR(c, b + 1, 7) {
| ^~~
scales.cpp:13:48: note: shadowed declaration is here
13 | #define FOR(i, a, b) for (int i = (a), _b = (b); i < _b; ++i)
| ^~
scales.cpp:81:18: note: in expansion of macro 'FOR'
81 | FOR(a, 1, 7) FOR(b, a + 1, 7) FOR(c, b + 1, 7) {
| ^~~
scales.cpp:13:48: warning: declaration of '_b' shadows a previous local [-Wshadow]
13 | #define FOR(i, a, b) for (int i = (a), _b = (b); i < _b; ++i)
| ^~
scales.cpp:82:9: note: in expansion of macro 'FOR'
82 | FOR(d, 1, 7) if (d != a && d != b && d != c) ask.push_back(vector<int>{d, a, b, c});
| ^~~
scales.cpp:13:48: note: shadowed declaration is here
13 | #define FOR(i, a, b) for (int i = (a), _b = (b); i < _b; ++i)
| ^~
scales.cpp:81:35: note: in expansion of macro 'FOR'
81 | FOR(a, 1, 7) FOR(b, a + 1, 7) FOR(c, b + 1, 7) {
| ^~~
scales.cpp:72:15: warning: unused parameter 'T' [-Wunused-parameter]
72 | void init(int T) {
| ~~~~^
scales.cpp: In function 'void orderCoins()':
scales.cpp:96:13: warning: declaration of 'i' shadows a previous local [-Wshadow]
96 | REP(i, 720) if (bs[i] && Ask(i, v) != cur) bs[i] = 0;
| ^
scales.cpp:12:39: note: in definition of macro 'REP'
12 | #define REP(i, n) for (int i = 0, _n = (n); i < _n; ++i)
| ^
scales.cpp:93:10: note: shadowed declaration is here
93 | FORD(i, 7, 1) {
| ^
scales.cpp:14:39: note: in definition of macro 'FORD'
14 | #define FORD(i, b, a) for (int i = (b), _a = (a); --i >= _a; )
| ^