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...

#ABecEz PHP 2 seconds ago
Success
  1. <?php
  2. class ParentClass
  3. {
  4. }
  5.  
  6. final class MyClass extends ParentClass
  7. {
  8. }
#cuA1nB Java 6 seconds 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. {
#aKPrWJ Python 3 6 seconds ago
Compilation error
  1. import googlemaps
  2. import urllib2
  3. import urllib
  4. import json
  5. import simplejson
  6. import math
  7. from pprint import pprint
  8. #API_KEY = 'AIzaSyCZE-Tw7JOB1z_Qr1PgBBLlMzRswPmS5N8'
  9. with open('data.json') as data_file:
#NN5P46 Java 13 seconds 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. {
#5iSJS2 C 32 seconds ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void) {
  5. int dammy;
  6. scanf("%d", &dammy); printf("> %d\n",dammy);
  7. scanf("%d", &dammy); printf("> %d\n",dammy);
  8. scanf("%d", &dammy); printf("> %d\n",dammy);
  9. scanf("%d", &dammy); printf("> %d\n",dammy);
#hsGtEw C 47 seconds ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void) {
  5. int dammy;
  6. scanf("%d", &dammy); printf("> %d\n",dammy);
  7. scanf("%d", &dammy); printf("> %d\n",dammy);
  8. scanf("%d", &dammy); printf("> %d\n",dammy);
  9. scanf("%d", &dammy); printf("> %d\n",dammy);
#YZ4OAs Java 47 seconds 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. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#Cl1IQ8 C++ 49 seconds ago
Success
  1. #include<iostream>
  2. #include<stdlib.h>
  3. using namespace std;
  4.  
  5. class node
  6. {
  7. public:
  8. int data;
  9. node* next;
#HkAnBE C 54 seconds ago
Runtime error
  1. #include<stdio.h>
  2. #include<string.h>
  3. void main()
  4. {
  5. int count=0,i,len;
  6. char str[100];
  7. printf("enter the sentence");
  8. gets(str);
  9. len=strlen(str);
#2ljLGV Python 54 seconds ago
Runtime error
  1. #!coding:utf-8
  2.  
  3. import urllib2
  4. import re
  5.  
  6. import sys
  7.  
  8. import time
  9. import threading
#hAJ12r C 56 seconds ago
Runtime error
  1. #include<stdio.h>
  2. int gcd(int,int);
  3. int gcd(int a,int b)
  4. {
  5. int r,a1,b1;
  6. a1=a;
  7. b1=b;
  8. if(a==0 && b==0)
  9. {
#VUpYVH C 1 minute ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. double number_1 = 2, number_2 = 5, number_3;
  6.  
  7. number_3 = number_1 + number_2;
  8.  
  9. scanf("%f", number_1);
#nw1bty Java 1 minute 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. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#fYAkph Node.js 1 minute ago
Runtime error
  1. /**
  2.  * A description
  3.  *
  4.  * @created August 27th, 2015
  5.  * @author Luke Chavers <luke@c2cschools.com>
  6.  * @updated September 01th, 2015
  7.  * @author Prashant Tyagi <prashanttyagi@zapbuild.com>
  8.  * @copyright 2015 C2C Schools, LLC. All rights reserved.
  9.  */
#w20sB8 C 1 minute ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. double number_1 = 2, number_2 = 5, number_3;
  6.  
  7. number_3 = number_1 + number_2;
  8.  
  9. scanf("%f", &number_1);
#Hjw41G Java 30 seconds ago
Success
  1. import java.io.*;
  2.  
  3.  
  4.  
  5. class Ideone
  6. {
  7.  
  8.  
  9. public static String result;
#e48xPw Java 31 seconds 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. class checkNum{
  8.  
  9.  
#r2Ucqt Pascal (fpc) 1 minute ago
Success
  1. const fi='SOFTWARE.inp'; fo='SOFTWARE.out';
  2. MAXN = 105;
  3. SUMMAXVAL = 3000005;
  4. var
  5. sump,sumc,n,SUMMAX:longint;
  6. p,c:array[0..MAXN] of integer;
  7. F:array[0..SUMMAXVAL] of longint;
  8. Trace:array[0..MAXN,0..SUMMAXVAL] of byte;
  9. procedure Inp;
#CmYWEx C 2 minutes ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void) {
  5. int dammy;
  6. scanf("%d", &dammy); printf("> %d\n",dammy);
  7. scanf("%d", &dammy); printf("> %d\n",dammy);
  8. scanf("%d", &dammy); printf("> %d\n",dammy);
  9. scanf("%d", &dammy); printf("> %d\n",dammy);
#uMX3DC PHP 1 minute ago
Success
  1. <?php
  2. $path="music.mp3";
  3. $ext=pathinfo($path,PATHINFO_EXTENSION);
  4. echo $ext;
  5. // your code goes here
#aAxm11 C++ 4.3.2 2 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
  8.  
  9. /*
#afse8U Java 2 minutes ago
Runtime error
  1. import java.io.*;
  2.  
  3.  
  4.  
  5. class ideone
  6. {
  7.  
  8.  
  9. public static String result;
#cKRDpx C 2 minutes ago
Success
  1. #include <stdio.h>
  2. int main(void) {
  3. int i, n;
  4. double sum=0;
  5. double x, x1;
  6. scanf("%lf",&x);
  7. scanf("%i",&n);
  8.  
  9. for (i=1; i<=n; i++) {
#svKnWy Pascal (fpc) 2 minutes ago
Success
  1. const fi='SOFTWARE.inp'; fo='SOFTWARE.out';
  2. MAXN = 105;
  3. SUMMAXVAL = 3000005;
  4. var
  5. sump,sumc,n,SUMMAX:longint;
  6. p,c:array[0..MAXN] of integer;
  7. F:array[0..SUMMAXVAL] of longint;
  8. Trace:array[0..MAXN,0..SUMMAXVAL] of byte;
  9. procedure Inp;
#tNw3au C 1 minute ago
Success
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main(void) {
  4. int n;
  5. double x,e=1,fac=1,t;
  6. scanf("%d %lf",&n,&x);
  7. if(n==0){printf("%lf",e);return 0;}
  8. t=x;
  9. for(int i=1;i<=n;i++)
#KphG4T C 2 minutes ago
Compilation error
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void) {
  5. int dammy;
  6. scanf("%d", &dammy); printf("> %d\n",dammy);
  7. scanf("%d", &dammy); printf("> %d\n",dammy);
  8. scanf("%d", &dammy); printf("> %d\n",dammy);
  9. scanf("%d", &dammy); printf("> %d\n",dammy);
#afXA8I C++ 5.1 1 second ago
Compilation
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. // LONG LONG
  4. #define LL long long
  5. #define SFL(a) scanf("%lld",&a)
  6. #define SF2L(a,b) scanf("%lld%lld",&a,&b)
  7. #define PFL(a) printf("%lld",a)
  8. #define PF2L(a,b) printf("%lld %lld",a,b)
#CaQMFb C 2 minutes ago
Compilation error
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void) {
  5. int input[65536];
  6. int dammy;
  7. scanf("%d", &dammy); printf("> %d\n",dammy);
  8. scanf("%d", &dammy); printf("> %d\n",dammy);
  9. scanf("%d", &dammy); printf("> %d\n",dammy);
#Pkb7eB C++ 4.3.2 2 minutes ago
Success
  1. #include<stdio.h>
  2. #include<iostream>
  3. #include<map>
  4. #include<algorithm>
  5. #include<string.h>
  6. using namespace std;
  7. int a[10000+100];
  8. int main()
  9. {
#RRCgXi C 2 minutes ago
Success
  1. #include<stdio.h>
  2. #include<math.h>
  3.  
  4. int func( int m, int n)
  5. {
  6. if(m!=0 && n!=0){
  7. if(n==0)
  8. return(1);
  9.