/in/foo.cc:20:1: error: 'vector' does not name a type
20 | vector<pthread_t> threads;
| ^~~~~~
/in/foo.cc: In function 'void solve()':
/in/foo.cc:50:25: error: 'threads' was not declared in this scope; did you mean 'read'?
50 | pthread_create(&threads[i], nullptr, worker, nullptr);
| ^~~~~~~
| read
/in/foo.cc:52:22: error: 'threads' was not declared in this scope; did you mean 'read'?
52 | pthread_join(threads[i], nullptr);
| ^~~~~~~
| read
/in/foo.cc: In function 'int main()':
/in/foo.cc:65:5: error: 'threads' was not declared in this scope; did you mean 'read'?
65 | threads.resize(threads_cnt); // vector运行期调整大小
| ^~~~~~~
| read