Издательство "Открытые системы" и проект SnarkNews представляют

SnarkNews winter series - 2007

Running by PC World
 

Используемая на сервере реализация C# - Mono C# 1.1.16.1

Компиляция программ на C# осуществляется следующим скриптом:

#!/bin/sh
# $Id: mcs.in 1980 2005-04-09 06:48:27Z cher $
# Copyright (c) 2005 Alexander Chernov

# A script for compilation of C# programs using the mono compiler.
# Usage: mcs in-file out-file

# using EJUDGE_FLAGS we may pass additional flags

MCSRUN="/home/ejudge/mono-1.1.16.1/bin/gmcs"
MCSDIR=""

if [ x"${MCSRUN}" = x -o x"${MCSRUN}" = xno ]
then
  echo "This language is not supported." >&2
  exit 1
fi

if [ x"${MCSDIR}" != x ]
then
  PATH="${MCSDIR}/bin:${PATH}"
fi

exec "${MCSRUN}" ${EJUDGE_FLAGS} -optimize+ "$1" -out:"$2"

Запуск программ на C# осуществляется следующим скриптом:

#!/bin/bash
# $Id: runmono.in 1980 2005-04-09 06:48:27Z cher $
# Copyright (c) 2005 Alexander Chernov

# A helper script to start C# programs using the mono runtime.
# Usage: runmono file

# EJUDGE_MONO_FLAGS may be used to pass additional flags
# security policy is not yet supported (mono does not support it)

runfile="$1"

MONORUN="/home/ejudge/mono-1.1.16.1/bin/mono"
MONODIR=""

[ x"${MONODIR}" != x ] && PATH="${MONODIR}/bin:$PATH"

export LANG=en_US
exec "${MONORUN}" ${EJUDGE_MONO_FLAGS} "${runfile}"