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

Filter by: Bash C C# C++ 5.1 C++14 Haskell Java Java7 Objective-C Pascal (fpc) Pascal (gpc) Perl PHP Python Python 3 Ruby SQL VB.NET more...

#p8jALH C 26 minutes ago
Success
  1. #include <stdio.h>
  2. main ()
  3. {
  4. /* This program will calculate the usable area in square feet of three houses */
  5.  
  6. /* This program will assume that the houses have rectangular or square rooms */
  7. /* variable definition: */
  8. int a, b, c, d, e, f, g, h, i, j,k,l,m,n,o,p,q,r,s,t,aa,bb,cc,dd,ee,ff,gg,hh,ii,jj;
  9. /*variable initialization */
#AykC1U Java 27 minutes ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#4zcJ8J PHP 27 minutes ago
Success
  1. <?php
  2. $numero = "";
  3. if (isset($_REQUEST['numero'])) {
  4. $numero = trim($_REQUEST['numero']);
  5. }
  6. switch ($numero){
  7. case "1":
  8. echo " Domingo";
  9. break;
#72Lh6y C 27 minutes ago
Success
  1. // C code
  2. // This house has four rooms: entrance, bedroom, dining and bathroom
  3. //It will total up the Square Footage of all rooms
  4. // Developer: Sabrina Smith
  5. // Date: Aug 28, 2015
  6. #include <stdio.h>
  7. int main ()
  8. {
  9. /* variable definition: */
#BNwDrp Java 27 minutes ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#7xP47F C 28 minutes ago
Success
  1. #include <stdio.h>
  2. main ()
  3. {
  4. /* This program will calculate the usable area in square feet of three houses */
  5.  
  6. /* This program will assume that the houses have rectangular or square rooms */
  7. /* variable definition: */
  8. int a, b, c, d, e, f, g, h, i, j,k,l,m,n,o,p,q,r,s,t,aa,bb,cc,dd,ee,ff,gg,hh,ii,jj;
  9. /*variable initialization */
#4DsmSq Java 28 minutes ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#BOh5qz C++ 28 minutes ago
Time limit exceeded
  1. #include <iostream>
  2. #include <queue>
  3. using namespace std;
  4. int l1, l2;
  5.  
  6. /* A binary tree Node has key, pointer to left and right children */
  7. struct Node
  8. {
  9. int key;
#N6Ccuj Pascal (fpc) 28 minutes ago
Runtime error
  1. program ct;
  2. const
  3. fi='baitho.inp';
  4. fo='baitho.out';
  5. var i :integer;
  6. f1,f2 :text;
  7. s :string;
  8. procedure doc;
  9. var tam:string;
#IYc2ph C 21 minutes ago
Success
  1. #include<stdio.h>
  2.  
  3. /**
  4.  * My custom recursive function to calculate power of two
  5.  */
  6. unsigned int twoPow(unsigned int n){
  7. if(n == 0)
  8. return 1;
  9.  
#e0OFxx C++14 19 minutes ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int arr[105];
  4. int main() {
  5. int n,m,v,count=0,j,i,max=-1,ind=-1;
  6. scanf("%d %d",&n,&m);
  7. arr[n+1];
  8. memset(arr,0,n+1);
  9. for(int i=0;i<m;i++){
#JA2mwd Java 29 minutes ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#ICttZs Java 9 minutes ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. interface A
  8. {
#gTry0u C 29 minutes ago
Success
  1. #include <stdio.h>
  2. main ()
  3. {
  4. /* This program will calculate the usable area in square feet of three houses */
  5.  
  6. /* This program will assume that the houses have rectangular or square rooms */
  7. /* variable definition: */
  8. int a, b, c, d, e, f, g, h, i, j,k,l,m,n,o,p,q,r,s,t,aa,bb,cc,dd,ee,ff,gg,hh,ii,jj;
  9. /*variable initialization */
#BDj0KS Java 30 minutes ago
Compilation error
  1. //Eli Valentine
  2.  
  3. //first day of school
  4.  
  5. //this is a program designed to calculate your healthy weight for your height
  6.  
  7. import java.input.Scanner;
  8. public class Valentineweight
  9. {
#FCjHgo C 30 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a
  5. return 0;
  6. }
#Ml1sfp C++ 30 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. { int a=28354911 ,b=300;
  5. do
  6. {
  7. cout<<"ITEM#"<<a<<".berufs ";
  8. a++;
  9. b--;
#cvDJec Pascal (fpc) 30 minutes ago
Runtime error
  1. program ct;
  2. const
  3. fi='baitho.inp';
  4. fo='baitho.out';
  5. var i :integer;
  6. f1,f2 :text;
  7. s :string;
  8. procedure doc;
  9. var tam:string;
#KxWd5Y C++14 30 minutes ago
Success
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int n,f;
  6. //long double pi = acos(-1) ;
  7.  
  8. int x(long double num , long double arr[])
  9. {
#idKwb7 Python 3 30 minutes ago
Compilation error
  1. from operator import add, sub
  2.  
  3. int a = 2
  4. int b = 3
  5. def a_plus_abs_b(a, b):
  6. """Return a+abs(b), but without calling abs.
  7.  
  8. >>> a_plus_abs_b(2, 3)
  9. 5
#cA1LIu C++ 32 minutes ago
Success
  1. #include<cstdio>
  2. int main(){
  3. int A[15];
  4. for(int i=0;i<5;i++)
  5. scanf("%d",A+i);
  6. printf("%d",A[0]);
  7. return 0;
  8. }
#lHBtjR C++14 32 minutes ago
Compilation error
  1. #include<stdio.h>
  2.  
  3. static char t[1024];
  4.  
  5. int main(){
  6. register unsigned i;
  7. while(gets(t)){
  8. for(i = 0; t[i]; t[i] -= 7, ++i);
  9. puts(t);
#ltcmfM Ruby 32 minutes ago
Runtime error
  1. puts name.to_s+'had a little'+mammal.to_s+','+'little'+mammal.to_s+','+'little'+mammal.to_s+','+name.to_s+'had a little'+mammal.to_s+','+'its fleece was'+colour.to_s+'as snow'+'.'
  2. +'it followed her to'+place.to_s+'one day'+','+place.to_s+'one day'+','+place.to_s+'one day'+','+'it made the children'+verb1.to_s+'and'+verb2.to_s+'to see a'+mammal.to_s+'at'+place.to_s+'.'
#dgA4vg C 11 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // Setting integer length values
  5.  
  6. int rm1length = 11;
  7. int rm2length = 12;
  8. int rm3length = 13;
  9. int rm4length = 14;
#Omnrrm VB.NET 32 minutes ago
Runtime error
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. Dim n As Integer
  6. n = Console.ReadLine
  7. Do While n <> 42
  8. System.Console.WriteLine(n)
  9. n = Console.ReadLine
#wijVhb C++ 5.1 32 minutes ago
Success
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. bool a = true;
  7. bool b = false;
  8. printf( "%d, %d\n", a, b );
  9. return 0;
#fuPgpm Python 3 31 minutes ago
Success
  1. from operator import add, sub
  2.  
  3. def a_plus_abs_b(a, b):
  4. """Return a+abs(b), but without calling abs.
  5.  
  6. >>> a_plus_abs_b(2, 3)
  7. 5
  8. >>> a_plus_abs_b(2, -3)
  9. 5
#atGQLF Java 32 minutes ago
Compilation error
  1. public class JavaPattern
  2. {
  3. public static void main(String[] args)
  4. {
  5. /* Print newline before displaying the pattern. */
  6. System.out.println();
  7.  
  8. /* Print the pattern. */
  9. System.out.println(" J A V V A");
#y6Zr5t C 29 minutes ago
Compilation error
  1. #include <string.h>
  2.  
  3. void main()
  4. {
  5. int x,y,z;
  6. x = 2;
  7. y = 3;
  8. z = ((x++)*(x++)+(++y)*(++y));
  9. printf(" %d\n, %d\n,%d",x,y,z);
#EmKkm8 C++14 33 minutes ago
Success
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int n,f;
  6. //long double pi = acos(-1) ;
  7.  
  8. int x(long double num , long double arr[])
  9. {