Problem adjlist
User 2Princes1Lance
Submission Time 2023-12-15 15:41:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

/usr/bin/ld: /tmp/ccizf9uo.o: in function `main':
adjlist.cpp:(.text.startup+0x25b): undefined reference to `pthread_create'
/usr/bin/ld: adjlist.cpp:(.text.startup+0x40c): undefined reference to `pthread_create'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/libstdc++.a(thread.o): in function `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())':
(.text._ZNSt6thread15_M_start_threadESt10unique_ptrINS_6_StateESt14default_deleteIS1_EEPFvvE+0x15): undefined reference to `pthread_create'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/libstdc++.a(thread.o): in function `std::thread::_M_start_thread(std::shared_ptr<std::thread::_Impl_base>, void (*)())':
(.text._ZNSt6thread15_M_start_threadESt10shared_ptrINS_10_Impl_baseEEPFvvE+0x68): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status