Unsafe mode in C# not working

The CodinGame FAQ mentions the C# compiler has the -unsafe option enabled, however as soon as the ‘unsafe’ keyword is used in code, you get this error:

error CS0227: Unsafe code requires the `unsafe’ command line option to be specified

This makes me wary of using my favorite language for multiplayer bots knowing I can’t squeeze out some more performance if needed (e.g. using pointers for very frequent array access).

Can this please be fixed before the next contest?


1 Like

Indeed, the option was set for the “IN/OUT” puzzles but not for the solo/multiplayer puzzles (those with a graphical representation). The fix should be available later this week.

1 Like

Great to hear, thanks!

It’s done. Thank you reCurse for letting us know of that issue :).