CodingKnight's blog

By CodingKnight, 10 days ago,

Hello Codeforces,

I got the following compilation error

Cannot compile file:
In file included from C:/Programs/msys2-mingw64-9/include/c++/9.2.0/pstl/parallel_backend.h:14,
from C:/Programs/msys2-mingw64-9/include/c++/9.2.0/pstl/algorithm_impl.h:25,
from C:/Programs/msys2-mingw64-9/include/c++/9.2.0/pstl/glue_execution_defs.h:52,
from C:/Programs/msys2-mingw64-9/include/c++/9.2.0/execution:32,
from program.cpp:2:
C:/Programs/msys2-mingw64-9/include/c++/9.2.0/pstl/parallel_backend_tbb.h:19:10: fatal error: tbb/blocked_range.h: No such file or directory
19 | #include <tbb/blocked_range.h>


when I added the include command #include <execution> to use the execution::par constant.

128886532

The program compiles successfully on my local computer. Am I missing something that can fix this compilation error?

• -5

 » 10 days ago, # |   +9 Note that testing systems typically add up CPU time for all cores, so any parallelism will only make your program more likely to get a TL.
•  » » 10 days ago, # ^ |   0 Thanks for the feedback. I was interested in comparing the performance of the program with and without the parallel_policy.