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

#JGxaE7 C++14 14 seconds ago
Success
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4. #include <string>
  5. using namespace std;
  6.  
  7. int main() {
  8. string str,t="DONE";
  9.  
#RzOaKT C 23 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. {
#5xNSYq C++14 31 seconds ago
Success
  1. #include <iostream>
  2. #include <algorithm>
  3.  
  4. using namespace std;
  5.  
  6. template <typename InputIterator>
  7. static void test(InputIterator first, InputIterator last)
  8. {
  9. std::for_each(first, last, [](decltype(*first) value){ std::cout<<value<<std::endl; });
#2GSLmq Java 13 seconds ago
Success
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone {
#oN2Rom Java 37 seconds ago
Success
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone {
#pBMIPO Java 1 minute ago
Compilation error
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone {
#uMqM6T C++14 1 minute ago
Success
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. string s="";
  8. s+='a';
  9. return 0;
#u1m1Fn C++14 1 minute ago
Compilation error
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. int tc;
  8. cin >> tc;
#7qqiyb C++ 5.1 1 minute ago
Compilation error
  1. clude<iostream.h>
  2.  
  3. int count = 0;
  4.  
  5. class alpha
  6.  
  7. { public:
  8.  
  9.  alpha( )
#N8wXiO Java 27 seconds ago
Compilation error
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone {
#eTPImX Java 1 minute ago
Compilation error
  1. import java.io.*;
  2. import java.util.*;
  3. import java.util.stream.*;
  4.  
  5. public class Solution {
  6. public static void main(String[] args) {
  7. int sum = 0;
  8. for(int i = 0; i < args.length; i++ ){
  9. int num = Integer.parseInt(args[i]);
#znxwkA Java 1 minute ago
Compilation error
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone {
#bbnDKk Java 2 minutes ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.io.*;
  5. import java.time.*;
  6. import java.time.temporal.ChronoUnit;
  7. import static java.time.temporal.TemporalAdjusters.*;
  8. class Ideone
  9. {
#DUoO6t Java 2 minutes ago
Compilation error
  1. package org.myorg;
  2.  
  3. import java.io.IOException;
  4. import java.util.*;
  5.  
  6. import org.apache.hadoop.fs.Path;
  7. import org.apache.hadoop.conf.*;
  8. import org.apache.hadoop.io.*;
  9. import org.apache.hadoop.mapred.*;
#IRUiyo C++14 2 minutes ago
Success
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4. #include <string>
  5. using namespace std;
  6.  
  7. int main() {
  8. string str,t="DONE";
  9.  
#xwJDaH Python 2 minutes ago
Success
  1. # your code goes here
  2. print "hi"
#6FVEyk Java 2 minutes ago
Success
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone {
#wzZAhq Java 2 minutes ago
Compilation error
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7.  
  8. public partial class index : System.Web.UI.Page
  9. {
#UHng4J C++14 2 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int i=0;
  7. if(i=0){
  8. cout<<"a"<<endl;
  9. }
#o72Cn7 PHP 3 minutes ago
Runtime error
  1. <?php <p>
  2. <label>Ваш E-mail *:<br></label>
  3. <input name="email" type="text" size="15" maxlength="100">
  4. </p>
  5.  
  6. // your code goes here
#dr3uFi Objective-C 1 minute ago
Success
  1. #import <objc/objc.h>
  2. #import <objc/Object.h>
  3. #import <Foundation/Foundation.h>
  4.  
  5. @implementation TestObj
  6. int main()
  7. {
  8. if (4 == 4 && 3 == 3) {
  9. printf("yep");
#ICGt8d C++14 44 seconds ago
Success
  1. #include <stdio.h>
  2. #include<iostream>
  3. using namespace std;
  4. int main()
  5. {
  6. int n,temp,i,j;
  7. cin>>n;
  8. int a[n];
  9. for(i=0;i<n;i++)
#728yzx Java 3 minutes ago
Compilation error
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone {
#OoFlMM Java 3 minutes ago
Success
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone {
#STKqMD Python 23 seconds ago
Success
  1. import math
  2. a = [64.656,63.697,66.485,64.807,70.784,67.899,71.664,71.084,63.783,64.666]
  3. x = 66.95
  4. sum = 0
  5. for i in range(len(a)):
  6. sum += math.pow(a[i]-x,2)
  7. print sum/9.0
  8.  
#ToFXQj C 2 minutes ago
Success
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(void)
  5. {
  6. char str1[51], str2[51];
  7. int i, c, j;
  8.  
  9. while(scanf("%s", str1)!=EOF)
#BQXV55 C 27 seconds ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. //
  5. struct empleado{
  6. int codigo;
  7. char nombre[2];
  8. float salario;
  9. };
#8qjBOg C++14 3 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3. class B;
  4. void asd(B&) {}
  5.  
  6. struct A
  7. {
  8. virtual void a() {asd(*this);}
  9. };
#U0SFDD C++14 4 minutes ago
Runtime error
  1. #include<bits/stdc++.h>
  2. #include<iostream>
  3. #include<vector>
  4. #include<algorithm>
  5. #include<string.h>
  6. using namespace std;
  7. typedef long long ll;
  8. typedef pair<int,int> pi;
  9. typedef vector<int> vi;
#dBmBJw C++14 38 seconds ago
Success
  1. #include <stdio.h>
  2. #include <map>
  3. #include <vector>
  4. #include <iostream>
  5. #include <cstring>
  6. using namespace std;
  7. #define pc(x) putchar_unlocked(x);
  8. inline void writeInt (int n)
  9. {