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