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

#flAkJi Nimrod 48 days ago
Compilation error
  1. import strutils
  2.  
  3. proc solve(): int =
  4. var
  5. N = readLine(stdin).parseInt()
  6.  
  7. return N
  8.  
  9. echo(solve)
#2RROyv Nimrod 48 days ago
Compilation error
  1. proc solve(): int =
  2. var
  3. N = readLine(stdin).parseInt()
  4.  
  5. return N
  6.  
  7. echo(solve)
#oMlwxc Nimrod 48 days ago
Compilation error
  1. proc solve(): int =
  2. var
  3. N = readLine(stdin).toInt()
  4.  
  5. return N
  6.  
  7. echo(solve)
#UkuLrh Nimrod 48 days ago
Compilation error
  1. import strutils, sequtils, algorithm, math
  2.  
  3. proc solve(): int =
  4. var
  5. xy = readLine(stdin).split(' ').map(parseDouble)
  6. x: double
  7. y: double
  8. ans: int
#V9qQ0W Nimrod 48 days ago
Compilation error
  1. import strutils, algorithm, math
  2.  
  3. proc solve(): int =
  4. var
  5. xy = readLine(stdin).split(' ').map(parseDouble)
  6. x: double
  7. y: double
  8. ans: int
#LvtCxO Nimrod 48 days ago
Compilation error
  1. import strutils, math
  2.  
  3. proc solve(): int =
  4. var
  5. xy = readLine(stdin).split(' ').map(parseDouble)
  6. x: double
  7. y: double
  8. ans: int
#XqmdkO Nimrod 48 days ago
Compilation error
  1. import strutils, math
  2.  
  3. proc solve(): int =
  4. xy = readLine(stdin).split(' ').map(parseDouble)
  5. x = xy[0]
  6. y = xy[1]
  7. ans = sqrt(x*x+y*y + 1.0).floor().toInt()
  8. return ans
#I8eUOn Nimrod 48 days ago
Compilation error
  1. import strutils, math
  2.  
  3. proc solve(): int =
  4. xy = readLine(stdin).split(' ').map(parseDouble)
  5. x = xy[0]
  6. y = xy[1]
  7. ans = sqrt(x*x+y*y + 1.0).floor().toInt()
  8. return ans
#hbA7Dd 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"
#PQNcLs 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"
#58YBS6 Nimrod 53 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"
#ssU4Wp Nimrod 54 days ago
Success
  1. # your code goes here
  2. echo "Hello world"
#3yWXsr Nimrod 54 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"
#Gcg0Bf 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"
#H3LlMF Nimrod 57 days ago
Success
  1. # your code goes here
#JwKCnh Nimrod 60 days ago
Compilation error
  1. iterator comb(m, n): seq[int] =
  2. var c = newSeq[int](n)
  3. for i in 0 .. <n: c[i] = i
  4.  
  5. block outer:
  6. while true:
  7. yield c
  8.  
  9. var i = n-1
#OXMcLl Nimrod 60 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"
#hgNxbs Nimrod 61 days ago
Success
  1. # your code goes here
  2. echo("What's your name? ")
  3. var name: string = readLine(stdin)
  4. echo("Hi, ", name, "!")
#iRugz0 Nimrod 62 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"
#uFS0Sa Nimrod 65 days ago
Compilation error
  1. 3,141592653589790
  2. N$2$9 $9$7$1$3$9$8 E$6$10 $2$6$1$6$7$11
#jIhfve Nimrod 69 days ago
Compilation error
  1. log("hello")
#fRmUNE Nimrod 69 days ago
Compilation error
  1. log('A')# your code goes here
#ZnArRe Nimrod 69 days ago
Compilation error
  1. log('h)
#noAb9O Nimrod 69 days ago
Compilation error
  1. "h"# your code goes here
#i49l2Z Nimrod 70 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++){
#2WtWwI Nimrod 71 days ago
Compilation error
  1. function fact (n)
  2. if n == 0 then
  3. return 1
  4. else
  5. return n * fact(n-1)
  6. end
  7. end
  8.  
  9. print("enter a number:")
#rp7XjB Nimrod 75 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"
#k21zeL Nimrod 76 days ago
Compilation error
  1. assert int32 isnot int64
#nKsDN6 Nimrod 76 days ago
Success
  1. import md5
  2.  
  3. echo toMD5("Hello World!")
#mmBfcB Nimrod 78 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"