It’s been almost a decade since I used C++ and had to verify, but after some quick searching around it looks like it hasn’t changed a ton since I last looked at it.
You can use smart pointers, and certainly you should, but it’s a whole extra thing tacked on to the language and the compiler doesn’t consider it an issue if you don’t use them. Using new in C++ isn’t like using unsafe in rust; in rust your code is almost certainly safe unless marked otherwise, whereas in C++ it may or may not be managed properly unless you explicitly mark a pointer as smart.
For your own code in new codebases this is probably fine. You can just always make your pointers smart. When you’re relying on code from other people, some of which has been around for many years and has been written by people you’ve never heard of, it becomes harder to be sure everything is being done properly at every point, and that’s where many of these issues come into play.
If you can see a polar bear it’s a threat.
They really aren’t like other bear species. They are an apex predator in an area where basically nothing other than another polar bear can even harm them. They see most things as food, including humans.
As a bonus, Iceland has a pretty wonky ecosystem that needs protecting as is and polar bears aren’t native to the island. They have to swim extreme distances to get there, making relocation extremely difficult and expensive, plus if they leave it be it will entirely disrupt other wildlife in the area, to say nothing of the human population.
As others have said, it sucks that it got shot, but Iceland especially has very limited options on how else to deal with it. Shoot on sight is, unfortunately, a very reasonable policy for them.