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

#eLd1nz PHP 7 minutes ago
Success
  1. <?php
  2.  
  3. function valid($str, &$error)
  4. {
  5. if (strlen($str) < 6)
  6. {
  7. $error = "Длина пароля менее 6 символов";
  8. return false;
#r7mnJD C++14 2 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6.  
  7.  
  8. int a[];
#piPLgd C 7 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x=3;
  5. x---1;
  6. printf("x=%d\n", x);
  7. return 0;
  8. }
#nUkyvf C 5 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int const *ptr 5;
  6.  
  7. printf("%d\r\n",++(*ptr));
  8.  
  9. return 0;
#eVaa3W 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 Flubber{
  9. public static void main(String args[])
#nBJ3kr C++ 7 minutes ago
Success
  1. #include<iostream>
  2. #include<bits/stdc++.h>
  3.  
  4. using namespace std;
  5. int main(void)
  6. {
  7. int n,i,x;
  8. string str;
  9. vector<pair<int,string> >a;
#rXJb2u Java 7 minutes ago
Compilation error
  1. class StatusDemo
  2. {
  3. int id ;
  4. char status;
  5. StatusDemo()
  6. {
  7. id++;
  8. }
  9. SatusDemo(char status)
#xhycW9 Java 7 minutes ago
Compilation error
  1. public class Test {
  2.  
  3. private static int noOfObjects; /**
  4.   * @param args
  5.   */
  6. public static void main(String[] args) {
  7. // TODO Auto-generated method stub
  8. private static int noOfInstances=10;
  9.  
#TS3ZvW C++14 52 seconds ago
Compilation error
  1. #include <iostream>
  2. #include<string.h>
  3. using namespace std;
  4. void swap (char *a, char *b)
  5. {
  6. char temp;
  7. temp = *a;
  8. *a = *b;
  9. *b = temp;
#gbKJqe Java 7 minutes ago
Compilation error
  1. public class Test {
  2.  
  3. private static int noOfObjects; /**
  4.   * @param args
  5.   */
  6. public static void main(String[] args) {
  7. // TODO Auto-generated method stub
  8. private static int noOfInstances=10;
  9.  
#SstSt7 C# 7 minutes ago
Success
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. class Program
  5. {
  6. static void Main(string[] args)
  7. {
  8. Hashtable hh=new Hashtable();
  9. hh.Add(1,2);
#SxHvbw Java 8 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. {
#86UDG8 C++14 8 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i =0;
  6. do {
  7. i++;
  8. }do (i<10);
  9. return 0;
#IFdghP C 8 minutes ago
Compilation error
  1. #include<stdio.h>
  2. main()
  3. {
  4. int i,j
  5. printf("%d\n",i);
  6. printf("%d",j);
  7. }
  8.  
#VAkwDS PHP 8 minutes ago
Success
  1. <?php
  2.  
  3.  
  4. function valid($str, &$error)
  5. {
  6. if (strlen($str) < 6)
  7. {
#ivJ73o Java 8 minutes ago
Compilation error
  1. http://w...content-available-to-author-only...m.tv/channel/4Sp6Nmj5Mbj
  2. http://w...content-available-to-author-only...m.tv/channel/4Sp6Nmj5Mbj
  3. http://w...content-available-to-author-only...m.tv/channel/4Sp6Nmj5Mbj
  4. http://w...content-available-to-author-only...m.tv/channel/4Sp6Nmj5Mbj
#XoqYFG Java 8 minutes ago
Compilation error
  1. public class Employee{
  2. public String firstName;
  3. public String lastName;
  4. public int age;
  5. public char gender;
  6. public Employee(String firstNameForThisObject,String lastNameForThisObject,char gender){
  7. firstName=firstNameForThisObject;
  8. lastName=lastNameForThisObject;
  9. gender=gender;
#PfBoVy Java 7 minutes ago
Compilation error
  1. {
  2. "version": "0.0.0",
  3. "author": "Jeramy Morrill",
  4. "devDependencies": {
  5. "angular": "^1.3.13",
  6. "gulp": "^3.8.11",
  7. "gulp-autoprefixer": "^2.1.0",
  8. "gulp-browserify": "^0.5.1",
  9. "gulp-cache": "^0.2.4",
#rPZbtq Java 8 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 Flubber{
  9. public static void main(String args[])
#AONc8H C++ 5.1 2 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. //code
  6. int t,n;
  7. cin>>t;
  8. while(t--)
  9. {
#BZsfWc C++ 4.3.2 8 minutes ago
Runtime error
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. //ham tinh can bac 2
  6. unsigned long my_sprt(unsigned long x)
  7. {
  8. unsigned long xn, xprev;
  9. xn = x/2;
#zEnbYk C 7 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. long int t,p;
  5. long int i;
  6. scanf("%ld",&t);
  7. int a[1000000];
  8. for(i=0;i<1000000;i++)a[i]=0;
  9. for(i=0;i<t;i++)
#Lcg1gb C 8 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i=0, x=3;
  5. while((x---1)){
  6. i++;
  7. printf("i=%d\n", i);
  8. }
#ifEOlN Java 8 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. {
#RczEuL C++14 9 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. long long t, s, x, i, a, k;
  7. i=1;
  8. cin>>t>>s>>x;
  9. t=x-t;
#u52vsQ 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. /* Name of the class has to be "Main" only if the class is public. */
  8. class Sample
  9. {
#HxgBcZ C 9 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i=0, x=3;
  5. while((x---1)){
  6. i++;
  7.  
  8. }
  9. printf("i=%d\n", i);
#P7LlE9 C 9 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char c[]= "AMAZON2013";
  5. char *p=c;
  6. printf("%s", p+p[4]-p[7]);
  7. }
#Lxxn90 C++ 9 minutes ago
Success
  1. #include<iostream>
  2. using namespace std;
  3. int main(void)
  4. {
  5. string s;
  6. cin>>s;
  7. cout<<s;
  8. }
#6GHSyN 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. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {