happiness.cpp: In function 'bool init(long long int, long long int, long long int*)':
happiness.cpp:19:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
19 | #define FOR(i, a, b) for (int (i) = a; (i) <= (b); i++)
| ^
happiness.cpp:29:5: note: in expansion of macro 'FOR'
29 | FOR(i, 0, coinsCount - 1)
| ^~~
happiness.cpp:19:22: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
19 | #define FOR(i, a, b) for (int (i) = a; (i) <= (b); i++)
| ^~~
happiness.cpp:29:5: note: in expansion of macro 'FOR'
29 | FOR(i, 0, coinsCount - 1)
| ^~~
happiness.cpp:31:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
31 | return true;
| ^~~~~~
happiness.cpp: In function 'bool is_happy(long long int, long long int, long long int*)':
happiness.cpp:19:31: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
19 | #define FOR(i, a, b) for (int (i) = a; (i) <= (b); i++)
| ^
happiness.cpp:34:5: note: in expansion of macro 'FOR'
34 | 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;
| ^~~~~~~~
/usr/bin/ld: /tmp/ccxALGiT.o: in function `main':
grader.cpp:(.text.startup+0x96): undefined reference to `init(int, long long, long long*)'
/usr/bin/ld: grader.cpp:(.text.startup+0x160): undefined reference to `is_happy(int, int, long long*)'
collect2: error: ld returned 1 exit status