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

Filter by: All Bash C C# C++ 4.8.1 C++11 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 (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) R Scala Scheme (guile) Smalltalk Tcl Text Unlambda Whitespace

#8SlQXD Scala 2 hours ago
Success
  1. object Main extends App {
  2. print(2+2)
  3. }
#TD6sPk Scala 2 hours ago
Success
  1. object Main extends App {
  2. 2+2
  3. }
#9QqiCS Scala 3 hours ago
Success
  1. object Main extends App {
  2. //Preconditions
  3. val multiplier = 33
  4.  
  5. //Problem definition
  6. val problemSource = 0x23456789
  7. val problem: Int = problemSource * multiplier
  8. println(s"$problemSource * $multiplier = $problem")
#zVMbGV Scala 3 hours ago
Success
  1. object Main extends App {
  2. //Preconditions
  3. val multiplier = 33
  4.  
  5. //Problem definition
  6. val problemSource = 0x98765432
  7. val problem: Int = problemSource * multiplier
  8. println(s"$problemSource * $multiplier = $problem")
#aQxVFa Scala 4 hours ago
Success
  1. object Main extends App{for(x<-1 to 50)print(List("fizz"*(1-x%3)+"buzz"*(1-x%5),""+x).sorted.tail(0))}
#gAu4pk Scala 4 hours ago
Runtime error
  1. object Main {
  2. for(x<-1 to 50)print(List("fizz"*(1-x%3)+"buzz"*(1-x%5),""+x).sorted.tail(0))
  3. }
#35xCKo Scala 14 hours ago
Success
  1. object Main extends App {
  2. var line = readLine();
  3. while(false == line.equals("42")) {
  4. System.out.println(line);
  5. line = readLine();
  6. };
  7. }
#gcbv54 Scala 14 hours ago
Compilation error
  1. 1f
  2. 8b08
  3. 08e79a
  4. 4f4e0203
  5. 230073f3f4
  6. 73f4b152f053
  7. 30b1d8a06068a2
  8. 67
  9. 6e
#nIZGPq Scala 16 hours ago
Compilation error
  1. object Main extends App {
  2. type ¬[A] = A => Nothing
  3. type[T, U] = ¬[¬[T] with ¬[U]]
  4. type ¬¬[A] = ¬[¬[A]]
  5. type |∨|[T, U] = { type λ[X] = ¬¬[X] <:< (T ∨ U) }
  6.  
  7. def dashboardStat[LabelT: (scala.xml.Elem |∨| String)#λ,
  8. ValueT: (scala.xml.Elem |∨| String)#λ]
  9. (target: String, label: LabelT, value: ValueT, icon: String) =
#cTAXM8 Scala 16 hours ago
Success
  1. object Main extends App {
  2. type ¬[A] = A => Nothing
  3. type[T, U] = ¬[¬[T] with ¬[U]]
  4. type ¬¬[A] = ¬[¬[A]]
  5. type |∨|[T, U] = { type λ[X] = ¬¬[X] <:< (T ∨ U) }
  6.  
  7. def dashboardStat[LabelT: (scala.xml.Elem |∨| String)#λ,
  8. ValueT: (scala.xml.Elem |∨| String)#λ]
  9. (target: String, label: LabelT, value: ValueT, icon: String) =
#h1FwVd Scala 16 hours ago
Success
  1. object Main extends App {
  2. def dashboardStat(target: String, label: Any, value: Any, icon: String) =
  3. <a href={target}>
  4. <div class="visual">
  5. <i class={s"fa fa-$target"}></i>
  6. </div>
  7. <div class="details">
  8. <span class="content">{label}</span>
  9. <span class="value">{value}</span>
#1kPgQT Scala 16 hours ago
Success
  1. object Main extends App {
  2. def dashboardStat(target: String, label: Any, value: Any, icon: String) =
  3. <a href={target}>
  4. <div class="visual">
  5. <i class={s"fa fa-$target"}></i>
  6. </div>
  7. <div class="details">
  8. <span class="content">{label}</span>
  9. <span class="value">{value}</span>
#nMJ04l Scala 16 hours ago
Success
  1. object Main extends App {
  2. def dashboardStat(target: String, label: Any, value: Any, icon: String) =
  3. <a href={target}>
  4. <div class="visual">
  5. <i class={s"fa fa-$target"}></i>
  6. </div>
  7. <div class="details">
  8. <span class="content">{label}</span>
  9. <span class="value">{value}</span>
#fffYsu Scala 16 hours ago
Compilation error
  1. object Main extends App {
  2. def dashboardStat(target: String, label: String, value: String, icon: String) =
  3. <a href={target}>
  4. <div class="visual">
  5. <i class={s"fa fa-$target"}></i>
  6. </div>
  7. <div class="details">
  8. <span class="content">{label}</span>
  9. <span class="value">{value}</span>
#Iy9PH0 Scala 16 hours ago
Success
  1. object Main extends App {
  2. def dashboardStat(target: String, label: String, value: String, icon: String) =
  3. <a href={target}>
  4. <div class="visual">
  5. <i class={s"fa fa-$target"}></i>
  6. </div>
  7. <div class="details">
  8. <span class="content">{label}</span>
  9. <span class="value">{value}</span>
#ULaE8z Scala 16 hours ago
Success
  1. object Main extends App {
  2. def dashboardStat(target: String, label: String, value: String, icon: String) =
  3. <a href={target}>
  4. <div class="visual">
  5. <i class={s"fa fa-$target"}></i>
  6. </div>
  7. <div class="details">
  8. <span class="content">{label}</span>
  9. <span class="value">{value}</span>
#cx3Xep Scala 16 hours ago
Success
  1. object Main extends App {
  2. // your code goes here
  3.  
  4. println("Hello")
  5. }
#wiDyku Scala 1 day ago
Success
  1. final class Order private() {
  2. case class OrderLine(x: Int, y: Double) { }
  3.  
  4. def this(rawOrderLines: Seq[(Int, Double)]) = {
  5. this()
  6. _orderLines = rawOrderLines.map { case (x, y) => OrderLine(x, y) }
  7. }
  8.  
  9. private var _orderLines: Seq[OrderLine] = null
#gHEQDo Scala 1 day ago
Success
  1. final class Order private() {
  2. case class OrderLine(x: Int) { }
  3.  
  4. def this(makeOrderLines: { def apply(order: Order): Seq[order.OrderLine] }) = {
  5. this()
  6. _orderLines = makeOrderLines(this)
  7. }
  8.  
  9. private var _orderLines: Seq[OrderLine] = null
#DNYqjL Scala 1 day ago
Success
  1. object Main extends App {
  2. println( (1 until 100) == (1 until 1) )
  3. }
#c4RJRi Scala 1 day ago
Success
  1. trait Petuh {
  2. def кококо()
  3. }
  4. object PhpKlovan extends Petuh {
  5. def кококо() = println("КУДКУДААХ ПЫХАПЕ НОРМАЛЬНЫЙ ЯЗЫК!!1")
  6. }
  7. object Main extends App {
  8. val петушинаяОбойма = Seq(PhpKlovan, new Petuh {
  9. def кококо() = println("КУДДКУДААХ C++ САМЫЙ ЛУЧШИЙ ЯЗЫК!!!")
#CFrsxp Scala 1 day ago
Success
  1. object Main extends App {
  2.  
  3. trait Replica {
  4. def identity: ReplicaIdentity
  5.  
  6. abstract trait ReplicaIdentity
  7. }
  8.  
  9. trait LocalReplica extends Replica {
#EVh9FT Scala 1 day ago
Success
  1. final class Order private() {
  2. case class OrderLine(x: Int) { }
  3.  
  4. def this(makeOrderLines: { def apply(order: Order): Seq[order.OrderLine] }) = {
  5. this()
  6. orderLines = makeOrderLines(this)
  7. }
  8.  
  9. // TODO: Private setter.
#j9QxZK Scala 1 day ago
Compilation error
  1. final class Order private() {
  2. case class OrderLine(x: Int) { }
  3.  
  4. def this(makeOrderLines: { def apply(order: Order): Seq[order.OrderLine] }) = {
  5. this()
  6. orderLines = makeOrderLines(this)
  7. }
  8.  
  9. // TODO: Private setter.
#I2z4IW Scala 1 day ago
Success
  1. final class Order private() {
  2. case class OrderLine(x: Int) { }
  3.  
  4. def this(makeOrderLines: { def apply(order: Order): Seq[order.OrderLine] }) = {
  5. this()
  6. orderLines = makeOrderLines(this)
  7. }
  8.  
  9. // TODO: Private setter.
#ohd5UG Scala 1 day ago
Success
  1. final class Order private() {
  2. class OrderLine(x: Int) { }
  3.  
  4. def this(makeOrderLines: { def apply(order: Order): Seq[order.OrderLine] }) = {
  5. this()
  6. orderLines = makeOrderLines(this)
  7. }
  8.  
  9. // TODO: Private setter.
#ZO4V8X Scala 1 day ago
Compilation error
  1. final class Order private() {
  2. class OrderLine(x: Int) { }
  3.  
  4. def this(makeOrderLines: { def apply(order: Order): Seq[order.OrderLine] }) = {
  5. this()
  6. orderLines = makeOrderLines(this)
  7. }
  8.  
  9. // TODO: Private setter.
#tZ6ubt Scala 1 day ago
Compilation error
  1. final class Order private() {
  2. case class OrderLine(x: Int) { }
  3.  
  4. def this(makeOrderLines: { def apply(order: Order): Seq[order.OrderLine] }) = {
  5. this()
  6. orderLines = makeOrderLines(this)
  7. }
  8.  
  9. // TODO: Private setter.
#ZdaADF Scala 1 day ago
Compilation error
  1. final class Order private() {
  2. case class OrderLine(x: Int) { }
  3.  
  4. def this(makeOrderLines: { def apply(order: Order): Seq[order.OrderLine] }) = {
  5. this()
  6. orderLines = makeOrderLines(this)
  7. }
  8.  
  9. // TODO: Private setter.
#5rfeki Scala 1 day ago
Compilation error
  1. final class Order private() {
  2. case class OrderLine(x: Int) { }
  3.  
  4. def this(makeOrderLines: { def apply(order: Order): Seq[order.OrderLine] }) = {
  5. this()
  6. orderLines = makeOrderLines(this)
  7. }
  8.  
  9. // TODO: Private setter.