Problem | funnyhat |
---|---|
User | PlayVoltz |
Submission Time | 2024-12-31 10:39:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
funnyhat.cpp: In function ‘int find_hat(int, std::vector<int>)’:
funnyhat.cpp:43:3: error: ‘pii’ was not declared in this scope
43 | pii best=mp(sz[root]-sz[c], c);
| ^~~
funnyhat.cpp:44:26: error: ‘best’ was not declared in this scope; did you mean ‘st’?
44 | for (auto num:graph[c])best=max(best, mp(sz[num], num)));
| ^~~~
| st
funnyhat.cpp:44:41: error: ‘mp’ was not declared in this scope
44 | for (auto num:graph[c])best=max(best, mp(sz[num], num)));
| ^~
funnyhat.cpp:45:15: error: ‘best’ was not declared in this scope; did you mean ‘st’?
45 | if (see_hat(best.se))root=best.se;
| ^~~~
| st