Pass the history array into your new function via a pointer.
I don't know what you mean by "without researching", but that is a very hardcore way to learn C. Respect!
Pass the history array into your new function via a pointer.
I don't know what you mean by "without researching", but that is a very hardcore way to learn C. Respect!
Looks at us, doing self care :D
Or norovirus, or covid or...
Its definitely whataboutism, but I think its important to keep things in perspective. A couple percent efficiency improvement across the global shipping industry would near enough offset the entire cruise industry, and I'd prefer that efforts were focused there.
Just existing produces carbon, and I'd rather people spend carbon on travel and broadening their minds instead of running a 4th fridge like my mate... If only it were that simple...
You've posted nothing meaningful at all.
Its the Australia version of a truck.
This feels like a nonissue. There are dozens of ways an untrustworthy repo can cause code execution, from this to build.rs.
Expecting Claude to list every possible risk is a bit silly.
The else is definitely not needed, you can delete it.
As for the best way to climb out of a nested loop, this is one of the occasions that a goto is reasonable. The jump would be relatively short and localised, which is exactly what GOTO should be used for:

What's with the getchars slapped everywhere? I think its an attempt to flush stdin, but I think you need to do it repeatedly until you hit a newline or EOF.
I think your next step is to refactor the code into some functions, you have two nearly identical code sections for adding a new pin, you can make that a function and simplify it.
I am actually surprised its that high, there aren't many cruise lines, and they don't have that many boats. I would have guessed <100.
There are ~370 cruise ships currently: https://cruisemarketwatch.com/capacity/
There are ~100000 cargo ships. https://www.virtuemarine.nl/post/top-maritime-nations-largest-fleets-worldwide
Cruise ships certainly aren't great, but they are a rounding error, not a significant driving force.
Its a kernel exploit, so probably. But I just checked my arch installs,and I don't have any of the kernel modules loaded. ~~Loading requires root anyway, so I think this may be fairly limited in reality?~~
Edit: seems the modules get loaded automatically :(
That's fair enough, and a good way to learn. Still, in this day and age with Claude etc, I respect the effort you're putting in.
In the interests of proposing alternatives, you could also make the pin list a global variable. I'll let you work out why its a bad idea though :)