Problem | factories |
---|---|
User | syy |
Submission Time | 2023-03-08 13:16:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
factories.cpp:2:9: error: ‘pair’ does not name a type
2 | typedef pair<int, int> pi;
| ^~~~
factories.cpp:6:1: error: ‘vector’ does not name a type
6 | vector <pi> adjlist[500005];
| ^~~~~~
factories.cpp:9:1: error: ‘stack’ does not name a type
9 | stack <int> st;
| ^~~~~
factories.cpp: In function ‘int subtrsz(int, int, int)’:
factories.cpp:15:15: error: ‘adjlist’ was not declared in this scope; did you mean ‘dist’?
15 | for (auto it:adjlist[x]) {
| ^~~~~~~
| dist
factories.cpp: In function ‘int findcent(int, int, int)’:
factories.cpp:27:15: error: ‘adjlist’ was not declared in this scope; did you mean ‘dist’?
27 | for (auto it:adjlist[x]) {
| ^~~~~~~
| dist
factories.cpp: In function ‘void build(int, int, int)’:
factories.cpp:46:15: error: ‘adjlist’ was not declared in this scope; di