happiness.cpp:22:17: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
22 | const int INF = 1e18;
| ^~~~
happiness.cpp: In function 'bool init(int, long long int, long long int*)':
happiness.cpp:18:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define FOR(i, a, b) for (int (i) = a; (i) <= (b); i++)
| ^
happiness.cpp:38:5: note: in expansion of macro 'FOR'
38 | FOR(i, 0, coinsCount - 1)
| ^~~
happiness.cpp:18:22: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
18 | #define FOR(i, a, b) for (int (i) = a; (i) <= (b); i++)
| ^~~
happiness.cpp:38:5: note: in expansion of macro 'FOR'
38 | FOR(i, 0, coinsCount - 1)
| ^~~
happiness.cpp:40:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
40 | return check();
| ^~~~~~
happiness.cpp: In function 'bool is_happy(int, int, long long int*)':
happiness.cpp:18:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
18 | #define FOR(i, a, b) for (int (i) = a; (i) <= (b); i++)
| ^
happiness.cpp:44:5: note: in expansion of macro 'FOR'
44 | FOR(i, 0, coinsCount - 1)
| ^~~
grader.cpp: In function 'int main()':
grader.cpp:16:12: warning: unused variable 'max_code' [-Wunused-variable]
16 | long long max_code;
| ^~~~~~~~