Building the program target_ptr_map.3b.c shows the following error:
amdclang++
clang++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
target_ptr_map.3b.c:22:33: error: map type must be specified for '#pragma omp target enter data'
22 | #pragma omp target enter data map(y[:N])
nvc
NVC++-S-1205-OpenMP GPU - 'target enter data' is used with map-type 'tofrom' that is other than 'to', or 'alloc' (target_ptr_map.3b.c: 25)
NVC++/x86-64 Linux 25.7-0: compilation completed with severe errors