diff --git a/dmoj/executors/ZIG.py b/dmoj/executors/ZIG.py index 958027442..ac8b396b0 100644 --- a/dmoj/executors/ZIG.py +++ b/dmoj/executors/ZIG.py @@ -11,13 +11,13 @@ class Executor(CompiledExecutor): pub fn main() !void { const io = std.io; - const stdin = std.io.getStdIn().inStream(); - const stdout = std.io.getStdOut().outStream(); + const stdin = std.io.getStdIn().reader(); + const stdout = std.io.getStdOut().writer(); var line_buf: [50]u8 = undefined; while (try stdin.readUntilDelimiterOrEof(&line_buf, '\n')) |line| { if (line.len == 0) break; - try stdout.print("{}", .{line}); + try stdout.print("{s}", .{line}); } }""" @@ -28,7 +28,7 @@ def create_files(self, problem_id, source_code, *args, **kwargs): super().create_files(problem_id, source_code, *args, **kwargs) def get_compile_args(self): - return [self.get_command(), 'build-exe', self._code, '--release-safe', '--name', self.problem] + return [self.get_command(), 'build-exe', self._code, '-O', 'ReleaseSafe', '--name', self.problem] @classmethod def get_version_flags(cls, command):