Problem graphcraft
User kenkunkin
Submission Time 2025-11-01 22:03:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

graphcraft.cpp: In function ‘int graphcraft(int, int, std::vector<std::pair<int, int> >*)’:
graphcraft.cpp:19:12: error: ‘ll’ was not declared in this scope
19 | vector<ll> need(N, 0);
| ^~
graphcraft.cpp:19:14: error: template argument 1 is invalid
19 | vector<ll> need(N, 0);
| ^
graphcraft.cpp:19:14: error: template argument 2 is invalid
graphcraft.cpp:19:25: error: expression list treated as compound expression in initializer [-fpermissive]
19 | vector<ll> need(N, 0);
| ^
graphcraft.cpp:20:11: error: invalid types ‘int[int]’ for array subscript
20 | need[0] = 1;
| ^
graphcraft.cpp:35:27: error: invalid types ‘int[int]’ for array subscript
35 | need[v] = (need[v] + (need[u] * cnt) % MOD) % MOD;
| ^
graphcraft.cpp:35:38: error: invalid types ‘