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

#8hX68c Scala 2 hours ago
Compilation error
  1. object Main extends App {
  2. // your code goes here
  3. }free apps
#mwdplN Scala 1 hour ago
Compilation error
  1. import scala.collection.immutable.List
  2.  
  3. object Main extends App {
  4.  
  5. def main override (args: Array[String]){
  6. var s = readInt()
  7. var t = readLine()
  8. var p = t.split(' ')
  9. var i = 0
#JMDvJD Scala 2 hours ago
Compilation error
  1. object Main extends App {
  2. // your code goes here
  3. }xXxX
#kEr6ad Scala 13 hours ago
Runtime error
  1. import language.experimental.macros
  2. import reflect.macros.Context
  3.  
  4. object Main extends App {
  5.  
  6. def hello(): Unit = macro hello_impl
  7.  
  8. def hello_impl(c: Context)(): c.Expr[Unit] = {
  9. import c.universe._
#Cz711C Scala 18 hours ago
Success
  1. object Main extends App {
  2. def p[A](a: A) = println(a)
  3.  
  4. p(Seq(1,2,3))
  5. p(Some("Hello world"))
  6. }
#8j3yWC Scala 18 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. }
#FxFGYn Scala 20 hours ago
Compilation error
  1. # include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int n,b[100];
  6. int i,max=0;
  7. cin>>n;
  8. for(i=0;i<n;i++) cin>>b[i];
  9. for(i=0;i<n;i++)
#rUUu7b Scala 20 hours ago
Compilation error
  1. # include <iostream>
  2. using namespace std;
  3. main()
  4. {
  5. int n,b[100];
  6. int i,max=0;
  7. cin>>n;
  8. for(i=0;i<n;i++) cin>>b[i];
  9. for(i=0;i<n;i++)
#PFM5yg Scala 23 hours ago
Success
  1. object Main extends App {
  2. val image = Seq(
  3. Seq(1,2,3,4,5),
  4. Seq(6,7,8,9,0),
  5. Seq(0,0,0,0,0),
  6. Seq(0,9,8,7,6),
  7. Seq(5,4,3,2,1)
  8. )
  9.  
#LS6kcy Scala 1 day ago
Compilation error
  1. abstract class Box[+A] {
  2.  
  3. def set[B >: A](x : B) : Box[B]
  4.  
  5. }
#xOHVs7 Scala 1 day ago
Compilation error
  1. class Box[+A] {
  2.  
  3. def set(x : A) : Box[A]
  4.  
  5. } // won't compile
#8ckb19 Scala 1 day ago
Success
  1. object Main extends App {
  2. val seq1 = Seq(1,2,3,4,5)
  3. val seq2 = Seq(6,7,8,9,0)
  4.  
  5. //畳み込み
  6. val result = seq1 zip seq2 map(pair => pair._1 * pair._2)
  7.  
  8. System.out.println(result)
  9. }
#GRXwti Scala 1 day ago
Compilation error
  1. object Main extends App {
  2. // your code goes here
  3. def main(args: Array[String]) {
  4. println("Hello, world!")
  5. }
  6. }
#ysiwh9 Scala 1 day ago
Compilation error
  1. object HelloWorld {
  2. def main(args: Array[String]) {
  3. println("Hello, world!")
  4. }
  5. }
#xsMLpA Scala 1 day ago
Compilation error
  1. object Main extends App {
  2. // your code goes here
  3. def main(args: Array[String]){
  4. println("Hello world!!!")
  5. }
  6. }
#rXQDj9 Scala 1 day ago
Compilation error
  1. object Main extends App {
  2. // your code goes here
  3. def main(args Array[String]){
  4. println("Hello world!!!")
  5. }
  6. }
#ftKwe7 Scala 1 day ago
Compilation error
  1. object Solution {
  2. type MyMap = Array[Array[Char]]
  3.  
  4. def main(args: Array[String]) {
  5. val xdt = (1 to 10).map(l => readLine.trim.toCharArray.map(c => if (c == '-') true else false)).toArray
  6. val words = readLine.trim.split(";").toList
  7. // println(words)
  8. val ydt =
  9. (for (x <- 0 to 9)
#EXyvoQ Scala 1 day ago
Success
  1. object Main extends App {
  2. var m=Console.readLine
  3. var m1=m.split(" ").map( _.toInt )
  4. var k=Console.readLine
  5. var m2=k.split(" ").map( _.toInt )
  6. var k1=Console.readLine
  7. var m3=k1.split(" ").map( _.toInt )
  8. var arr:Array[Int]=new Array[Int](m1(1))
  9. for(i<-0 to m1(1)-1){
#7hyedQ Scala 1 day ago
Success
  1. // Yukkkkkkkk Simple One :----------------
  2. object Main extends App {
  3. var m=Console.readInt
  4. var st:String=Console.readLine
  5. var m2=st.split(" ").map( _.toInt )
  6. var m0=Console.readInt
  7. var m1:Array[String]=new Array[String](m0)
  8. for(i<-0 to m0-1){
  9. m1(i)=Console.readLine
#Xor7EK Scala 1 day ago
Compilation error
  1. object Main extends App {
  2. // your code goes here
  3. println ((" " + " ").isEmpty)
  4. }
#YY8kgg Scala 1 day ago
Success
  1. object Main extends App {
  2. val hoge = (1 to 3 map { a =>
  3. 1 to 3 map { b =>
  4. a + b
  5. }
  6. }).flatten
  7.  
  8. System.out.println(hoge)
  9. }
#wLQ6Gi Scala 2 days ago
Success
  1. object Main extends App {
  2. // your code goes here
  3. var count = 2
  4. for (_ <- 1 to 10) count = (count / 2) * 6
  5. println("answer : " + count)
  6. }
#Ukpw8E Scala 2 days ago
Success
  1. object Main extends App {
  2. var m=Console.readInt
  3. var st:String=Console.readLine
  4. var m2=st.split(" ").map( _.toInt )
  5. var m0=Console.readInt
  6. var m1:Array[String]=new Array[String](m0)
  7. for(i<-0 to m0-1){
  8. m1(i)=Console.readLine
  9. }
#tv3DdR Scala 2 days ago
Runtime error
  1. object Main extends App {
  2. var m=Console.readInt
  3. var st:String=Console.readLine
  4. var m2=st.split(" ").map( _.toInt )
  5. var m0=Console.readInt
  6. var m1:Array[String]=new Array[String](m0)
  7. for(i<-0 to m0-1){
  8. m1(i)=Console.readLine
  9. }
#orRbv5 Scala 2 days ago
Success
  1. import Array._
  2. import scala.util.control._
  3. object Main extends App {
  4. var x = new Array[Int](6)
  5. // x= readLine.split(" ").map(_.toInt)
  6. var a :Char ='a'
  7. var str= readLine()
  8. print(str)
  9. a=str(0)
#UoHzx5 Scala 2 days ago
Runtime error
  1. object Main extends App {
  2. var m=Console.readInt
  3. var st:String=Console.readLine
  4. var m2=st.split(" ").map( _.toInt )
  5. var m0=Console.readInt
  6. var m1:Array[String]=new Array[String](m0)
  7. for(i<-0 to m0-1){
  8. m1(i)=Console.readLine
  9. }
#yOcgYN Scala 2 days ago
Success
  1. object Main extends App {
  2. var k=Console.readLine
  3. println(k.substring(0,1))
  4. println(k.substring(2))
  5. }
#4l6zwr Scala 2 days ago
Success
  1. object Main extends App {
  2. var k=Console.readLine
  3. println(k.substring(0,1))
  4. println(k.substring(1))
  5. }
#BxHDI8 Scala 2 days ago
Runtime error
  1. object Main extends App {
  2. var m=Console.readInt
  3. var st:String=Console.readLine
  4. var m2=st.split(" ").map( _.toInt )
  5. var m0=Console.readInt
  6. var m1:Array[String]=new Array[String](m0)
  7. for(i<-0 to m0-1){
  8. m1(i)=Console.readLine
  9. }
#O6dKox Scala 2 days ago
Runtime error
  1. object Main extends App {
  2. var m=Console.readInt
  3. var st:String=Console.readLine
  4. var m2=st.split(" ").map( _.toInt )
  5. var m0=Console.readInt
  6. var m1:Array[String]=new Array[String](m0)
  7. for(i<-0 to m0-1){
  8. m1(i)=Console.readLine
  9. }