Problem fenwicktree
User cobnet
Submission Time 2024-02-27 22:15:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

/usr/bin/ld: /tmp/ccXOZxd9.o: in function `void std::vector<std::thread, std::allocator<std::thread> >::_M_realloc_insert<void (&)()>(__gnu_cxx::__normal_iterator<std::thread*, std::vector<std::thread, std::allocator<std::thread> > >, void (&)())':
fenwicktree.cpp:(.text._ZNSt6vectorISt6threadSaIS0_EE17_M_realloc_insertIJRFvvEEEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_[_ZNSt6vectorISt6threadSaIS0_EE17_M_realloc_insertIJRFvvEEEEvN9__gnu_cxx17__normal_iteratorIPS0_S2_EEDpOT_]+0xb2): undefined reference to `pthread_create'
/usr/bin/ld: /tmp/ccXOZxd9.o: in function `main':
fenwicktree.cpp:(.text.startup+0xeb): 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_StateESt14defau