/tmp/cc1zlSqM.o: In function `std::thread::thread<ShortestP2P::parallelDistanceQueries(std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >&)::{lambda()#1}>(ShortestP2P::parallelDistanceQueries(std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >&)::{lambda()#1}&&)':
main.cpp:(.text+0x10c3): undefined reference to `pthread_create'
/tmp/cc1zlSqM.o: In function `std::__shared_mutex_pthread::lock()':
main.cpp:(.text._ZNSt22__shared_mutex_pthread4lockEv[_ZNSt22__shared_mutex_pthread4lockEv]+0x14): undefined reference to `pthread_rwlock_wrlock'
/tmp/cc1zlSqM.o: In function `std::__shared_mutex_pthread::unlock()':
main.cpp:(.text._ZNSt22__shared_mutex_pthread6unlockEv[_ZNSt22__shared_mutex_pthread6unlockEv]+0x14): undefined reference to `pthread_rwlock_unlock'
/tmp/cc1zlSqM.o: In function `std::__shared_mutex_pthread::lock_shared()':
main.cpp:(.text._ZNSt22__shared_mutex_pthread11lock_sharedEv[_ZNSt22__shared_mutex_pthread11lock_sharedEv]+0x14): undefined reference to `pthread_rwlock_rdlock'
collect2: error: ld returned 1 exit status