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

Compile Error

mrbeast.cpp: In function ‘void dfs(ll)’:
mrbeast.cpp:33:14: error: ‘adjList’ was not declared in this scope
33 | for(auto j: adjList[vertex]){
| ^~~~~~~
mrbeast.cpp: In function ‘int main()’:
mrbeast.cpp:53:10: error: ‘n’ was not declared in this scope
53 | 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:59:10: error: ‘n’ was not declared in this scope
59 | 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:64:29: error: expected ‘)’ before ‘{’ token
64 | for(auto j: directchild[i]{
| ~ ^
|