Problem mrbeast
User asbx
Submission Time 2023-12-20 10:50:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mrbeast.cpp: In function ‘int main()’:
mrbeast.cpp:52:10: error: ‘n’ was not declared in this scope
52 | FOR(i,1,n-1){
| ^
mrbeast.cpp:5:49: note: in definition of macro ‘FOR’
5 | #define FOR(i, a, b) for(ll i = (ll)a; i <= (ll)b; i++)
| ^
mrbeast.cpp:58:10: error: ‘n’ was not declared in this scope
58 | FOR(i,1,n){
| ^
mrbeast.cpp:5:49: note: in definition of macro ‘FOR’
5 | #define FOR(i, a, b) for(ll i = (ll)a; i <= (ll)b; i++)
| ^
mrbeast.cpp:63:29: error: expected ‘)’ before ‘{’ token
63 | for(auto j: directchild[i]{
| ~ ^
| )