I encountered the same issue - my solution was to cast the
nullable String? as String:
String enemy1 = stdin.readLineSync() as String;
int dist1 = int.parse(stdin.readLineSync() as String);
String enemy2 = stdin.readLineSync() as String;
int dist2 = int.parse(stdin.readLineSync() as String);
Hi to All, and many thanks to @TwoSteps for this url sharing, and specially to @VirtualAtom for this very good explained article on different parts of the the CodinGame platform :
=> I plusOne your presentation …
→ I plan to share it to my colleagues, manager and newbies at work to encourage them “Coding for fun” with us !
. Bye, have a sun, fun and good CodinGame day to all …
input() is for your code to read the input data. After you process the input data and output (e.g. print, console.log) the answers correctly, you pass the game/testcase/validator.