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

#ci1v1M PHP 23 minutes ago
Success
  1. <?PHP
  2. $code= array_merge( range('A', 'Z'), range('0', '9'));
  3. $_SESSION['code'] ='';
  4. for ($i = 0; $i < 5; $i++)
  5. $_SESSION['code'] .= $code[array_rand($code)];
  6. ?>
#9Rocn1 Perl 23 minutes ago
Runtime error
  1. $x=scalar($num);
  2. $p=0;
  3. while($ ne "end")
  4. {
  5. $num[$p]=[$x];
  6. $p++;
  7. chomp$x;
  8. }
#hskJF9 Python 23 minutes ago
Runtime error
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3.  
  4. def main():
  5. temp = np.ones(1000)
  6. plt.plot(temp)
  7. print "Hello world!"
  8.  
  9. if __name__ == "__main__":
#Bkn7cE Python 23 minutes ago
Runtime error
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3.  
  4. def main():
  5. temp = np.ones(1000)
  6. plt.plot(temp)
  7. print "Hello world!"
  8.  
  9. if __name__ == "__main__":
#QSbTEl C++ 15 minutes ago
Success
  1. #include<vector>
  2. #include<string>
  3. #include<iostream>
  4. #include<algorithm>
  5. #include<set>
  6.  
  7. using namespace std;
  8.  
  9. int main(){
#x0IdVG C 24 minutes ago
Compilation error
  1. #include <stdio.h>
  2. int i, j;
  3. i = 0;
  4. j = 0;
  5. int main(void) {
  6. while ( i <= 8){
  7. if (true)
  8. printf("#");
  9. j++;
#XTJjJl C++14 24 minutes ago
Success
  1. // Example program
  2. #include <iostream>
  3. #include <string>
  4. #include <memory>
  5. #include <map>
  6.  
  7. class Value
  8. {
  9. public:
#mnLmjC C++ 24 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. //Mayar Mahmoud Mabrouk
  6. {
  7. int i,j,n;
  8. int a[5][5];
  9. cout <<endl<<"enter the dimensions:";
#HkTiA8 Java 23 minutes ago
Success
  1. import java.util.stream.Stream;
  2.  
  3. import static java.util.Arrays.stream;
  4. import static java.util.stream.Collectors.joining;
  5.  
  6. public class Main {
  7. public static String getRoute(String source, String destination, String... layovers) {
  8. final Stream<String> route = Stream.concat(Stream.of(source), Stream.concat(stream(layovers), Stream.of(destination))) ;
  9.  
#FxWhxd Java 24 minutes ago
Compilation error
  1. var macro;
  2. macro = "CODE:";
  3. macro += "TAB T=1" + "\n";
  4. macro += "SET !ERRORIGNORE YES" + "\n";
  5. macro += "SET !ERRORCONTINUE YES" + "\n";
  6. macro += "SET !EXTRACT_TEST_POPUP NO" + "\n";
  7. macro += "SET !TIMEOUT 500" + "\n";
  8. macro += "URL GOTO=https://sites.google.com/site/testing/" + "\n";
  9. macro += "TAG POS=1 TYPE=DIV ATTR=ID:create-new-btn" + "\n";
#xBRPn1 Java 24 minutes ago
Compilation error
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include "Rover.h"
  4. #include "Radar.h"
  5. #include "Drill.h"
  6. #include "Battery.h"
  7. #include "SolarPanel.h"
  8.  
  9. using namespace std;
#8Qolp9 Java 24 minutes ago
Compilation error
  1. copy
  2. import java.util.stream.Stream;
  3.  
  4. import static java.util.Arrays.stream;
  5. import static java.util.stream.Collectors.joining;
  6.  
  7. public class Ideaone {
  8. public static String getRoute(String source, String destination, String... layovers) {
  9. final Stream<String> route = Stream.concat(Stream.of(source), Stream.concat(stream(layovers), Stream.of(destination))) ;
#yLnCEK C 1 second ago
Compilation
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int i, j, A, B, temp;
  6. scanf("%d%d", &A, &B);
  7. int x[A][B];
  8. int y[B][A];
  9. for(i = 0; i < A; i++)
#UDF1OF Java 24 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. {
#CUzaMW Java 24 minutes ago
Compilation error
  1. package labwork1;
  2.  
  3. import java.util.Scanner;
  4. import static java.lang.Math.*;
  5. /**
  6.  * @author Ivan Cherednichenko
  7.  */
  8. public class LabWork1 {
  9. public static void main(String[] args) {
#uraVXF Perl 24 minutes ago
Success
  1. $x=(@num);
  2. $i=0;
  3. while($x ne"end")
  4. {
  5. $num[$i]=$x;
  6. $i++;
  7. $x=<stdin>;
  8. chomp$x;
#Q24KPa C 10 minutes ago
Success
  1. #define NUMMONTHS 12
  2. #define NUMYEARS 5
  3. #include <stdio.h>
  4.  
  5. void inputdata();
  6. void printdata();
  7.  
  8. float Raindata[NUMYEARS] [NUMMONTHS];
  9. char years[NUMYEARS] [5] = {"2011", "2012", "2013", "2014", "2015"};
#4B3MmZ Python 3 25 minutes ago
Success
  1.  
  2. for i in range(0 ,20 ):
  3. print( i )
#a8vyRv Java 25 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. {
#3reIUx C 25 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int i,arr[i],sum=0;
  6. for(i=0;arr[i]==999;i++)
  7. {
  8. scanf("%d",arr[i]);
  9. sum = sum + arr[i];
#1HjoTr C++ 5.1 25 minutes ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main ()
  4. {
  5. char s[10000];
  6. int k,n=9;
  7. scanf("%s",&s);
  8. k=((n-5)/2)+((n-5)/3);
  9. printf("%d\n",k);
#aaWnqd Java 25 minutes ago
Compilation error
  1. import java.util.stream.Stream;
  2.  
  3. import static java.util.Arrays.stream;
  4. import static java.util.stream.Collectors.joining;
  5.  
  6. public class scratch_16 {
  7. public static String getRoute(String source, String destination, String... layovers) {
  8. final Stream<String> route = Stream.concat(Stream.of(source), Stream.concat(stream(layovers), Stream.of(destination))) ;
#LMu0Gm C++ 5.1 25 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. string x, 61, 71, 11, 21, 32, 19, 27, 31;
  7. 61 = "Brasilia";
  8. 71 = "Salvador";
  9. 11 = "Sao Paulo";
#rC6dCx Java 25 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. {
#QTMcSQ C++ 5.1 25 minutes ago
Success
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. printf("\t\t ÍÍÍ\xCEÍÍÍ\xCEÍÍÍ\n");
  7. return 0;
  8. }
#guaNek Pascal (fpc) 21 minutes ago
Runtime error
  1. program Krug;
  2.  
  3. CONST
  4. Pi = 3.14155;
  5.  
  6. VAR
  7. i,n: integer;
  8. r,P,O: real;
#8kFtL1 Java 25 minutes ago
Compilation error
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package os_a4;
  7.  
  8. import java.util.Vector;
#EklE8K Java 25 minutes ago
Compilation error
  1. public class BeerSong {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. int beerNum = 99;
  6. String word = "bottles";
  7.  
  8. while (beerNum > 0); {
#JeOtV9 C 25 minutes ago
Compilation error
  1. #include <stdio.h>
  2. i = 0;
  3. j = 0;
  4. int main(void) {
  5. while (int i <= 8){
  6. if (true)
  7. printf("#");
  8. j++;
  9. }
#6Czws4 Java 25 minutes ago
Compilation error
  1. Import java.util.Scanner;
  2.  
  3. Public class control3
  4. {
  5. Public static void Ingresar(double Nota_1[],double Nota_2[],double Nota_3[]; string Alumnos[], Scanner Entrada);
  6. {
  7. For (int i=0; i < Nota_1.length; i++)
  8. {
  9. System.out.print(“Nombre del Alumno:);