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

#vmc9iR Nimrod 49 days ago
Success
  1. # your code goes here
#V2jNav Nimrod 49 days ago
Compilation error
  1. my$x35 =chr(176)."55".
#2j1417 Nimrod 49 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" ;;
#VjXetK Nimrod 51 days ago
Compilation error
  1.  
  2. const f: string = "Fizz"
  3. var b = "buzz"
  4. b = "Buzz"
  5. for i in 1..100:
  6. if i mod 15 == 0:
  7. echo(f & b)
  8. elif i mod 5 == 0:
  9. echo b
#FKBVFg Nimrod 52 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"
#LLuETK Nimrod 54 days ago
Success
  1. when false:
  2. template fib(n:expr): expr =
  3. when n < 1: 0 else: fib(n-1) + fib(n-2)
  4.  
  5. proc fib(n:int):int =
  6. return if n < 2: n else: fib(n-1)+fib(n-2)
  7.  
  8. echo fib(8)
#K2a3wG Nimrod 55 days ago
Compilation error
  1. proc f(x: int): int =
  2. x + 1
  3.  
  4. echo 42.f
#6QfvDW Nimrod 55 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"
#YxNLVN Nimrod 55 days ago
Compilation error
  1. parallel:
  2. var i = 0
  3. while i <= a.high:
  4. spawn f(a[i])
  5. spawn f(a[i+1])
  6. # ERROR: cannot prove a[i] is disjoint from a[i+1]
  7. # BUT: replace 'i += 1' with 'i += 2' and the code compiles!
  8. i += 1
#Y2uiCT 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"
#Loigt6 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 soda"
#uFpPiR Nimrod 56 days ago
Compilation error
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. for(int i=0;i<10;i++)
  6. {
  7. cout<<"Hello"<<endl;
  8. }
  9. }
#QAZcNl Nimrod 60 days ago
Compilation error
  1. public class hi
  2. {
  3. public static void main (String []args)
  4. system.out.print("hi")
  5. }
#Fx4XlY Nimrod 61 days ago
Compilation error
  1. parallel:
  2. var i = 0
  3. while i <= a.high:
  4. spawn f(a[i])
  5. spawn f(a[i+1])
  6. # ERROR: cannot prove a[i] is disjoint from a[i+1]
  7. # BUT: replace 'i += 1' with 'i += 2' and the code compiles!
  8. i += 1
#PB8JL6 Nimrod 61 days ago
Time limit exceeded
  1. type Test = object
  2. r: ref Test
  3. while true:
  4. var one : ref Test
  5. new one
  6. one.r = one
  7. GC_fullCollect()
#T0P6Ww Nimrod 62 days ago
Compilation error
  1. type
  2. Rect = object
  3. x: float
  4. y: float
  5. width: float
  6. height: float
  7.  
  8. View = object
  9. frame: Rect
#ym8ACe Nimrod 63 days ago
Compilation error
  1. var i = 1
  2. i.inc
  3. echo(i)
#xz2OI5 Nimrod 63 days ago
Success
  1. # your code goes here
  2. var i = 1
  3. i.inc()
  4. echo(i)
#FaRak6 Nimrod 63 days ago
Compilation error
  1. # your code goes here
  2. var i = 0
  3. i.inc()
  4. print(i)
#F0xDd7 Nimrod 63 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 64 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 64 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 65 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 65 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 66 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 67 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 68 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 70 days ago
Compilation error
  1. G1syShtbMTsxSE4bWzE7NEg4G1syOzlIMRtbMTs1SLAbWzE7NkgyG1syOzdINxtbMTs4SC4bWzI7 NEg5G1syOzVIsBtbMjsxSEUbWzE7M0g0G1syOzExSDUbWzE7N0g4G1sxOzExSDgbWzE7OUg1G1sy OzExSDUbWzE7M0g0G1sxOzEwSDMbWzI7MTBIORtbMjs2SDUbWzI7OEguDQo=
#vnfh0P Nimrod 70 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 70 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)