0_0_20896950_4484.cpp:21:1: error: expected ';' after struct definition } ^ 0_0_20896950_4484.cpp: In function 'int dfs(int)': 0_0_20896950_4484.cpp:24:9: error: 'pp' was not declared in this scope sum += pp[x].num; ^