Looking for an inspiration? Below you will find public programs submitted by other users.

Filter by: All Bash C C# C++ 4.9.2 C++14 Haskell Java Java7 Objective-C Pascal (fpc) Pascal (gpc) Perl PHP Python Python 3 Ruby SQL VB.NET Ada Assembler Assembler AWK (gawk) AWK (mawk) bc Brainf**k C++ 4.3.2 C99 strict CLIPS Clojure COBOL COBOL 85 Common Lisp (clisp) D D (dmd) Erlang F# Factor Falcon Forth Fortran Go Groovy Icon Intercal JavaScript (rhino) JavaScript (spidermonkey) Lua Nemerle Nice Nimrod Node.js Ocaml Octave Oz PARI/GP Perl 6 Pike Prolog (gnu) Prolog (swi) Python (Pypy) R Scala Scheme (chicken) Scheme (guile) Smalltalk Tcl Text Unlambda Whitespace

#F0xDd7 Nimrod 38 days ago
Success
  1. proc GetBottleNumber(n: int): string =
  2. var bs: string
  3. if n == 0:
  4. bs = "No more bottles"
  5. elif n == 1:
  6. bs = "1 bottle"
  7. else:
  8. bs = $n & " bottles"
  9. return bs & " of beer"
#5kdXnX Nimrod 38 days ago
Compilation error
  1. */
  2.  
  3. /*
  4.  * $Id: fang.c,v 1.00 2003/04/20 13:00:00 ollie Exp $
  5.  */
  6.  
  7. #include <stdio.h>
  8. #include <stdlib.h>
  9. #include <unistd.h>
#mlaDap Nimrod 39 days ago
Success
  1. proc GetBottleNumber(n: int): string =
  2. var bs: string
  3. if n == 0:
  4. bs = "No more bottles"
  5. elif n == 1:
  6. bs = "1 bottle"
  7. else:
  8. bs = $n & " bottles"
  9. return bs & " of beer"
#JT8gA2 Nimrod 40 days ago
Success
  1. proc GetBottleNumber(n: int): string =
  2. var bs: string
  3. if n == 0:
  4. bs = "No more bottles"
  5. elif n == 1:
  6. bs = "1 bottle"
  7. else:
  8. bs = $n & " bottles"
  9. return bs & " of beer"
#IaL0FD Nimrod 40 days ago
Success
  1. proc GetBottleNumber(n: int): string =
  2. var bs: string
  3. if n == 0:
  4. bs = "No more bottles"
  5. elif n == 1:
  6. bs = "1 bottle"
  7. else:
  8. bs = $n & " bottles"
  9. return bs & " of beer"
#SJh0FL Nimrod 40 days ago
Compilation error
  1. iterator split*(s: string, sep: char): var string =
  2. var last = 0
  3. var res = newstring(256)
  4. assert('\0' != sep)
  5. if len(s) > 0:
  6. while last <= len(s):
  7. var first = last
  8. while last < len(s) and s[last] != sep:
  9. inc(last)
#QUCqTd Nimrod 42 days ago
Compilation error
  1. /* write your code below */
  2. Pmpmppppppppffm fpmmpppffmffpffpfffmpmpp fmmmffmmfmfp mffppp mpmmppppp Pfmmpfäpmfffpmpppff Fppmmmpmfmpm.
  3.  
  4. Mmmppp mpmmppppp mpfppfpmfmfmmpppppmpmmppppp Pmpppfppfpffmpmmffpppmmmfmpmppppp fppfmfpffmpmmpp mpppff mfmmppfmmmppmfpmppppp: Pppppfpffmpm fpmmffmpppff pppmppfmfppp pppfmfpmfpmf mmmmmfmfpfmp pfmfmfppppmpfmp mmmmmfmfpfmp fpmmffmpppff fmmmppmmfmfpfmm fmfpppmpm Ppffmmfmp pppfmfpmfpmf pppfmfpmfpmf fmmmffmppmmpmppppp fpmmffmpppff mpfüpppmpf pfmfmfppppmpfmp fpmmffmpppff mmmmmfmfpfmp ffpfppmppmff.
  5.  
  6. Fppmffmpp mppfmm fppmppmfffmpmpppffmfmmppmfpfmp, mpppffmpfämfppfffmmfmp Mpmfmf mmpmppmffppm mfmmppppfmmfmfpmppmmfpmp.
#VUDcI7 Nimrod 43 days ago
Compilation error
  1. <?php
  2.  
  3. $start = time();
  4. $checks = 0;
  5.  
  6. for($north = 5; $north <= 8; $north++){
  7. for($east = 1; $east <= 6; $east++){
  8. for($lat = 0; $lat <= 999; $lat++){
  9. for($long = 0; $long <= 999; $long++){
#LoizHY Nimrod 44 days ago
Compilation error
  1. G1syShtbMTsxSE4bWzE7NEg4G1syOzlIMRtbMTs1SLAbWzE7NkgyG1syOzdINxtbMTs4SC4bWzI7 NEg5G1syOzVIsBtbMjsxSEUbWzE7M0g0G1syOzExSDUbWzE7N0g4G1sxOzExSDgbWzE7OUg1G1sy OzExSDUbWzE7M0g0G1sxOzEwSDMbWzI7MTBIORtbMjs2SDUbWzI7OEguDQo=
#vnfh0P Nimrod 44 days ago
Success
  1. proc GetBottleNumber(n: int): string =
  2. var bs: string
  3. if n == 0:
  4. bs = "No more bottles"
  5. elif n == 1:
  6. bs = "1 bottle"
  7. else:
  8. bs = $n & " bottles"
  9. return bs & " of beer"
#WuxNtL Nimrod 44 days ago
Runtime error
  1. from strutils import parseInt, split, splitLines, join
  2. var input = readLine(stdin)
  3. var numbers = splitLines(input)
  4. var minlist: seq[string] = @[]
  5. for i in 1..numbers[0].parseInt:
  6. var minn = split(numbers[i])
  7. var (a, b, c) = (minn[0].parseInt, minn[1].parseInt, minn[2].parseInt)
  8. if a < b and b < c:
  9. minlist.add($a)
#RApEFR Nimrod 46 days ago
Compilation error
  1. my$x35 =chr(176)."55".(chr(46);m)y$x34 ;$x35=$x35."0\x363
  2.  
#iT8vXO Nimrod 46 days ago
Compilation error
  1. my$x35 =chr(176)."55".(chr(46);m)y$x34 ;$x35=$x35."0\x363
  2. E \t1;\10". 1 % 2 .chr(176/1) ."3\x34."; $x34=36 ;print
  3. "\x4E\11\x350" .$x35."1".$x34% 32 ."\x38\nH@". chr (80)
  4. .";\10Py "."c\x41c".chr ($x34*2 ) ."!Ng! :\x29 \n\7" ;;
#CN67co Nimrod 46 days ago
Success
  1. proc GetBottleNumber(n: int): string =
  2. var bs: string
  3. if n == 0:
  4. bs = "No more bottles"
  5. elif n == 1:
  6. bs = "1 bottle"
  7. else:
  8. bs = $n & " bottles"
  9. return bs & " of beer"
#A7hHrx Nimrod 46 days ago
Compilation error
  1. /* write your code below */
  2. |fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff
  3. |fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff
  4. |fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8
  5. |fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff
  6. |fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff
  7. |fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8
  8. |fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff
  9. |fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff|fmmfmp8|fmmpfmMff|fmmfmpMff
#OJbLxJ Nimrod 47 days ago
Success
  1. proc GetBottleNumber(n: int): string =
  2. var bs: string
  3. if n == 0:
  4. bs = "No more bottles"
  5. elif n == 1:
  6. bs = "1 bottle"
  7. else:
  8. bs = $n & " bottles"
  9. return bs & " of beer"
#dByYFx Nimrod 47 days ago
Success
  1. proc GetBottleNumber(n: int): string =
  2. var bs: string
  3. if n == 0:
  4. bs = "No more bottles"
  5. elif n == 1:
  6. bs = "1 bottle"
  7. else:
  8. bs = $n & " bottles"
  9. return bs & " of beer"
#htxei8 Nimrod 48 days ago
Compilation error
  1. proc GetBottleNumber(n: int): string =
  2. ( case n
  3. of 0: "No more bottles"
  4. of 1: "1 bottle"
  5. else: $n & " bottles" ) & " of beer"
  6.  
  7. for bn in countdown(99, 1):
  8. var cur = GetBottleNumber(bn)
  9. echo(cur, " on the wall, ", cur, ".")
#e3t44n Nimrod 48 days ago
Compilation error
  1. // Create a string with a constructor
  2. String s1 = new String("Who let the dogs out?");
  3. // Just using "" creates a string, so no need to write it the previous way.
  4. String s2 = "Who who who who!";
  5. // Java defined the operator + on strings to concatenate:
  6. String s3 = s1 + s2;
#lmCPMK Nimrod 48 days ago
Compilation error
  1. public class Main {
  2. public static void main(String[] args) {
  3. int[] numbers = {1, 2, 3};
  4. int length = numbers[3];
  5. char[] chars = new char[length];
  6. chars[numbers.length + 4] = 'y';
  7. System.out.println("Done!");
  8. }
  9. }
#IdILT4 Nimrod 48 days ago
Success
  1. proc GetBottleNumber(n: int): string =
  2. var bs: string
  3. if n == 0:
  4. bs = "No more bottles"
  5. elif n == 1:
  6. bs = "1 bottle"
  7. else:
  8. bs = $n & " bottles"
  9. return bs & " of beer"
#fPAImK Nimrod 49 days ago
Success
  1. proc GetBottleNumber(n: int): string =
  2. var bs: string
  3. if n == 0:
  4. bs = "No more bottles"
  5. elif n == 1:
  6. bs = "1 bottle"
  7. else:
  8. bs = $n & " bottles"
  9. return bs & " of beer"
#6uI3jw Nimrod 53 days ago
Success
  1. # your code goes here
  2. echo "foo"
#qjdeje Nimrod 53 days ago
Success
  1. # your code goes here
#9V3SKT Nimrod 53 days ago
Compilation error
  1. # your code goes here
  2.  
  3. while true:
  4. echo "yo"
#771Hp0 Nimrod 56 days ago
Success
  1. proc GetBottleNumber(n: int): string =
  2. var bs: string
  3. if n == 0:
  4. bs = "No more bottles"
  5. elif n == 1:
  6. bs = "1 bottle"
  7. else:
  8. bs = $n & " bottles"
  9. return bs & " of beer"
#ScuN7C Nimrod 57 days ago
Success
  1. proc GetBottleNumber(n: int): string =
  2. var bs: string
  3. if n == 0:
  4. bs = "No more bottles"
  5. elif n == 1:
  6. bs = "1 bottle"
  7. else:
  8. bs = $n & " bottles"
  9. return bs & " of beer"
#FiXPIh Nimrod 57 days ago
Success
  1. proc GetBottleNumber(n: int): string =
  2. var bs: string
  3. if n == 0:
  4. bs = "No more bottles"
  5. elif n == 1:
  6. bs = "1 bottle"
  7. else:
  8. bs = $n & " bottles"
  9. return bs & " of beer"
#6lY7SD Nimrod 57 days ago
Success
  1. proc GetBottleNumber(n: int): string =
  2. var bs: string
  3. if n == 0:
  4. bs = "No more bottles"
  5. elif n == 1:
  6. bs = "1 bottle"
  7. else:
  8. bs = $n & " bottles"
  9. return bs & " of beer"
#mfZQYy Nimrod 57 days ago
Compilation error
  1. <?pvbfj kcbvw vwn