given ($format){
exec 'gcc', qw/-DONLINE_JUDGE -std=gnu11 -Wall -Wextra -lm -O2 -o/, $basename, $name when 'C';
exec 'g++', qw/-DONLINE_JUDGE -std=gnu++11 -Wall -Wextra -lm -O2 -o/, $basename, $name when 'CPP';
+
when ('MONO') {
system 'gmcs', '-d:ONLINE_JUDGE', $name and die "gmcs failed: errno=$! return=$?";
rename "$basename.exe", $basename;
exec 'ghc', qw/-DONLINE_JUDGE -Wall -O2 -o/, $basename, $name when 'HASKELL';
exec 'rustc', qw/-O -o/, $basename, $name when 'RUST';
+ when ('BRAINFUCK') {
+ system 'bfc', $name and die "bfc failed: errno=$! return=$?";
+ rename "a.out", $basename;
+ chmod 0755, $basename;
+ exit
+ }
+
when ([qw/GOLFSCRIPT JULIA PERL PYTHON RUBY SBCL/]){
open IN, '<', $name;
open OUT, '>', $basename;
=over
+=item BRAINFUCK
+
+ bfc $input
+
=item C
gcc -DONLINE_JUDGE -std=gnu11 -Wall -Wextra -O2 -o $output $input