Problem graphcraft
User JoshJuice
Submission Time 2025-09-14 02:04:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

graphcraft.cpp: In function ‘ll dfs(int)’:
graphcraft.cpp:57:9: error: ‘result’ was not declared in this scope
57 | result = (ll)(sum % MOD);
| ^~~~~~
graphcraft.cpp:60:22: error: ‘result’ was not declared in this scope
60 | return memo[u] = result;
| ^~~~~~
graphcraft.cpp: In function ‘int graphcraft(int, int, std::vector<std::pair<int, int> >*)’:
graphcraft.cpp:64:9: error: ‘n’ was not declared in this scope
64 | N = n; C = c; V = v;
| ^
graphcraft.cpp:64:16: error: ‘c’ was not declared in this scope
64 | N = n; C = c; V = v;
| ^
graphcraft.cpp:64:23: error: ‘v’ was not declared in this scope
64 | N = n; C = c; V = v;
| ^