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

#VwtwAC Java 33 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. {
#u1ek7q Java 46 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. {
#yOuKX7 Java 47 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 A {
  9.  
#V2HX0b PHP 48 minutes ago
Success
  1. <?php
  2.  
  3. function justBinarySearch($x, $list) {
  4. sort($list);
  5. $left = 0;
  6. $right = count($list) - 1;
  7. while ($left <= $right) {
  8. $mid = (int)(($left + $right)/2);
  9. if ($list[$mid] == $x) {
#MlZ36t Java 46 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. import java.util.regex.Matcher;
  7. import java.util.regex.Pattern;
  8.  
  9. /* Name of the class has to be "Main" only if the class is public. */
#NZJsBj Java 22 minutes ago
Success
  1.  
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7.  
  8. class St_var
  9. {
#xof1cP C++14 47 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n,i=0,ar[200],temp;
  7. long long a;
  8. cin>>n>>a;
  9. while(n--)
#ZnqATR Java 30 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. {
#SvCc9I Java 48 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 Super {
  9. protected int n;
#3O4gIG C++ 5.1 48 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n{ 20 };
  7. for (int i{ 0 }; i>n; --i)
  8. cout << 'x' << endl;
  9. return 0;
#U4rOEz C 48 minutes ago
Runtime error
  1. #include <stdio.h>
  2. #include<string.h>
  3. int main(void) {
  4. char n1[50],n2[50];
  5. printf("enter your name");
  6. scanf("%c",n1);
  7. strcat("hi",n1);
  8. printf("%c",n1);
  9.  
#kmR7g5 C++ 5.1 18 minutes ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. class graph
  4. {
  5. int v;
  6. list<int> *adj;
  7. public:
  8. graph(int v)
  9. {
#vxmUpE Java 35 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 DistanceToOrigin
  9. {
#6o00cC C++14 48 minutes ago
Runtime error
  1. #include<iostream>
  2. #include<string>
  3. #include<algorithm>
  4. #include<cmath>
  5. #include<string.h>
  6. #include<math.h>
  7. #include<vector>
  8. #include<stack>
  9. #include<queue>
#ktV06F C 6 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3.  
  4. // Getraenke Automat Version 0.1
  5.  
  6. int einwurf=0;
  7. printf("Getraenke Automat | Bitte werfen sie 1 Euro ein: ");
  8. scanf("%d", &einwurf);
#byhMwq Perl 49 minutes ago
Runtime error
  1. #!/usr/bin/perl
  2. # your code goes here
  3. my $string = "1937.89 1*11.1 1938.03 2*2222.22 0*000.00 3*33333.333 1938.06 ";
  4.  
  5. $string =~ s/\s(\d+)\*(\d+\.\d+)\s/$2"\ $2"x$1/g
  6.  
  7. print $string;
#yYXAJs C++14 49 minutes ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int i;
  5. int a,b,h;
  6. int main()
  7. {
  8. cout << "Wybierz opcję" << endl;
  9. cout << "1. Prostokąt" << endl;
#YPHsnd Java 47 minutes ago
Success
  1. //String Variables
  2.  
  3. class St_Var
  4. {
  5. public static void main (String[] args)
  6. {
  7. String first = "Tim" ;
  8. String last = "Konovitch" ;
  9. System.out.println ("My name is " + first + " " + last) ;
#qzmhaO C++14 9 minutes ago
Success
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <vector>
  4.  
  5. using namespace std;
  6.  
  7.  
  8. int main(){
  9. //freopen("input.txt","rt",stdin);
#92F2Qm Java 47 minutes ago
Compilation error
  1. var s = (1.5-1)*2;
  2. alert(s);
#nbUoHI C++ 36 minutes ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class Test
  6. {
  7. private:
  8. int *a;
  9. int size;
#ZC2t0X PHP 49 minutes ago
Success
  1. <?php
  2.  
  3. function justBinarySearch($x, $list) {
  4. sort($list);
  5. $left = 0;
  6. $right = count($list) - 1;
  7. while ($left <= $right) {
  8. $mid = (int)(($left + $right)/2);
  9. if ($list[$mid] == $x) {
#lj89wk Java 45 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. {
#wbDSyh PHP 49 minutes ago
Success
  1. <?php
  2.  
  3. function justBinarySearch($x, $list) {
  4. sort($list);
  5. $left = 0;
  6. $right = count($list) - 1;
  7. while ($left <= $right) {
  8. $mid = (int)(($left + $right)/2);
  9. if ($list[$mid] == $x) {
#xp5pB2 PHP 49 minutes ago
Success
  1. <?php
  2.  
  3. function justBinarySearch($x, $list) {
  4. sort($list);
  5. $left = 0;
  6. $right = count($list) - 1;
  7. while ($left <= $right) {
  8. $mid = (int)(($left + $right)/2);
  9. if ($list[$mid] == $x) {
#75SURc Python 3 49 minutes ago
Compilation error
  1. print 24|42
#EgeDS0 PHP 49 minutes ago
Success
  1. <?php
  2.  
  3. // your code goes here
#odxEFg C++ 5.1 42 minutes ago
Success
  1. #include <iostream>
  2. #include<stdio.h>
  3. #include<vector>
  4. using namespace std;
  5.  
  6. int main() {
  7. // your code goes here
  8. int T;
  9. scanf("%d",&T);
#IzYjym C 50 minutes ago
Compilation error
  1. #include <stdio.h>
  2. #include<string.h>
  3. int main(void) {
  4. char n1[50],n2[50];
  5. printf("enter your name");
  6. scanf("%c",n1);
  7. strcat(hi,n1);
  8. printf("%c",n1);
  9.  
#KSuQVK Java 50 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. {