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

#7qwowC C++ 6 minutes ago
Compilation error
  1. class Vector {
  2. public:
  3. Vector(int s) :elem{new double[s]}, sz[s] {} // construct a vector
  4. double& operator[]int(i) {return elem[i];} // element access: subscripting
  5. int size() {return sz;}
  6. private:
  7. double* elem; //pointer to the elements
  8. int sz; // number of elements
  9. }
#v6Nrlz C++14 3 minutes ago
Compilation error
  1. #include <iostream>
  2. int main()
  3. {
  4. int hours;
  5. int moneyperweek;
  6. int hourssalary;
  7. std::cout<<"This program will show much you made this week.";
  8. std::cout<<"Please input the amount of hours you worked.";
  9. std::cin>>hours;
#64JDTQ Java 4 minutes ago
Compilation error
  1. import java.io.*;
  2. public class Quadratic.java
  3. {
  4. public static void main(String[] args) throws IOException
  5. {
  6. String str1,str2,str3;
  7. int a,b,c,d;
  8. double x1,x2;
#PP3aTE Java 7 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. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#7slBIW Java 7 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. {
#3zLCIm C 7 minutes ago
Success
  1. main()
  2. {
  3. printf("%x",-1<<4);
  4. }
#tRqbgi Java 7 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. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#ujcwUH C 7 minutes ago
Compilation error
  1. /#include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void)
  5. {
  6. int x,tabla[5];
  7. int sum;
  8.  
  9. for (x=0;x<10;x++)
#EFZj84 C++ 5.1 6 minutes ago
Time limit exceeded
  1. // Example program
  2. #include <iostream>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int cycle_length = 0;
  9. int max_cycle = 0;
#AnEFT8 C++14 7 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. cout << "Hello";
  7. return 0;
  8. }
#oQBdmO Python (Pypy) 7 minutes ago
Success
  1. print "Hello, Python!"
#9i6Orr Java 7 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. {
#3CPSs0 C 7 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int guess="";
  5. int random="";
  6. int random = rand(1) % 101;
  7.  
  8. //printf("Guess a whole number between 1-100: \hi");
  9. //scanf("%hi", &guess): return 0;
#8et5BR C 8 minutes ago
Success
  1. main()
  2. {
  3. struct test
  4. {
  5. char c;
  6. int i;
  7. char m;
  8. } t1;
  9. printf("%d %d\n", sizeof(t1), sizeof(t1.c));
#Fxvpni Python 3 8 minutes ago
Compilation error
  1. a = [5,4,3,2,1]
  2.  
  3. n = a.length
  4.  
  5. temp = 0
  6.  
  7. for i in 1..(n-1)
  8. for j in i..n
  9. if a[i] > a[j]
#ZyopFq C++ 5.1 8 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7. int double test1, test2, test3, test4, test5, total;
  8.  
#KY0BWv Pascal (fpc) 8 minutes ago
Success
  1. var
  2. a:string;
  3. begin
  4. readln(a);
  5. writeln(a);
  6. while not eof(input)do
  7. begin
  8. readln(a);
  9. writeln(a);
#1eELIF C 8 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. return 0;
  6. }
#meMSN7 SQL 8 minutes ago
Success
  1. NOW();
#ix1wjF C 7 minutes ago
Runtime error
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <strings.h>
  4.  
  5.  
  6. int main(void) {
  7.  
  8.  
  9. char boop[11] = "bobobobobo";
#UQdPFO Fortran 8 minutes ago
Compilation error
  1. program TEST
  2. REAL a1,a2,a3,a4,a5,b1,b2,b3,b4,b5
  3. REAL le_ds, le_dia
  4. REAL PI
  5. REAL x,y,x1,y1,x2,y2,xx
  6. REAL mu, omega, s, radius,m,theta
  7. REAL p1x,p2x,p1y,p2y
  8. REAL k1,k2,k3,ym,yym,xn,xxn
#jhXrg6 C++14 7 minutes ago
Compilation error
  1. #include <iostream>
  2. int main()
  3. {
  4. int hours:
  5. int moneyperweek;
  6. int hourssalary;
  7. std::cout<<"This program will show much you made this week.";
  8. std::cout<<"Please input the amount of hours you worked.";
  9. std::cin>>hours;
#7CSVlu Pascal (fpc) 8 minutes ago
Success
  1. var
  2. a:string;
  3. begin
  4. readln(a);
  5. writeln(a);
  6. while not eof(input)do
  7. begin
  8. readln(a);
  9. writeln(a);
#osDOOs C++ 5.1 9 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int
  7.  
  8.  
  9. return 0;
#ZdTTHt Java 9 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. {
#sLYIr8 Java 9 minutes ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2. public void sort2(Comparable[] list )
  3. {
  4. int[] list = {3, 15, 61, 11, 7, 9, 2};
  5.  
  6. for (int i=1; i< list.length; ++i)
  7. {
  8. int bot=0, top=i-1;
  9. while (bot<=top)
#BmtrwI C 4 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int g;
  5.  
  6. printf("Please enter an interger greater then 0: \n");
  7. scanf("%d", &g);
  8. if (g>0)
  9. {
#9kPVs6 Python 9 minutes ago
Success
  1. #!/usr/bin/env python
  2.  
  3. def counting_sort(array, maxval):
  4. """in-place counting sort"""
  5. n = len(array)
  6. m = maxval + 1
  7. count = [0] * m # init with zeros
  8. for a in array:
  9. count[a] += 1 # count occurences
#lwvOTf C++ 5.1 9 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7. int double test1, test2, test3, test4, test5, total;
  8.  
  9. total = (test1 + test2 + test3 + test4 + test5) / 3;
#TsENvM Java 10 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. {