Problem | rainbowroad |
---|---|
User | PlayVoltz |
Submission Time | 2023-10-31 22:13:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rainbowroad.cpp:11:8: error: ‘trio’ was not declared in this scope
11 | vector<trio> graph[MAXN];
| ^~~~
rainbowroad.cpp:11:12: error: template argument 1 is invalid
11 | vector<trio> graph[MAXN];
| ^
rainbowroad.cpp:11:12: error: template argument 2 is invalid
rainbowroad.cpp: In function ‘long long int rainbowroad(long long int, long long int, long long int)’:
rainbowroad.cpp:15:52: error: ‘dir’ was not declared in this scope; did you mean ‘div’?
15 | if (dp[node][mask][par]!=-1)return dp[node][mask][dir];
| ^~~
| div
rainbowroad.cpp:17:26: error: ‘begin’ was not declared in this scope
17 | for (auto num:graph[node])if (num.first!=par)sum+=rainbowroad(num.first, node, (mask|(1<<num.second)));
| ^
rainbowroad.cpp:17:26: note: suggested a