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

#qyO0oT Pascal (fpc) 1 second ago
Compilation error
  1. program exPointers;
  2. var
  3. number: integer;
  4. iptr: ˄integer;
  5.  
  6. begin
  7. number := 100;
  8. writeIn("Number is: ", number);
#exQan3 C++ 5.1 6 seconds ago
Success
  1. #include<iostream>
  2. #include<string>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. std::ios::sync_with_stdio(false);
  8. int tc, activities, value, sum = 0;
  9. string nationality, activity;
#FnZykn PHP 8 seconds ago
Success
  1. <?php
  2.  
  3. $stringsToExclude = ['/_monitor/', '/_monitor', '/some_string'];
  4. $stringsToInclude = ['/monitor/', '/some_string/', '/some_monitor_string/', '/some_string_monitor/'];
  5. $match = "/(?!\/_monitor\/).*\/$/";
  6.  
  7. foreach($stringsToExclude as $string) {
  8. var_dump($string);
  9. var_dump(preg_match($match, $string));
#BO4UUx C 12 seconds ago
Compilation error
  1. int hash(string s,int mod){
  2. int key=0;
  3. long long prod=1;
  4. for(int i=0;i<s.size();i++){
  5. key+= prod*(s[i]);
  6. prod*=37;
  7. prod%=mod;
  8. key%=mod;
  9. }
#tMNhkg Perl 19 seconds ago
Success
  1. $DNA="CTGACTG";
  2. $d="TG";
  3. $n=index($DNA,$d,0);
  4. $n+=2;
  5. $new=substr($DNA,$n,2);
  6. print"$new";
#AjSQw7 Go 21 seconds ago
Success
  1. package main
  2. import "fmt"
  3.  
  4. func main() { var n int
  5. fmt.Scanf("%d",&n)
  6. for n!=42 {
  7. fmt.Printf("%d\n",n)
  8. fmt.Scanf("%d",&n)
  9. }
#cJuQb3 C++ 5.1 25 seconds ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. printf("welcome \n")
  7. return 0;
  8. }
#fXEPe7 Java 29 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. {
#sF7JWM Perl 33 seconds ago
Success
  1. print "enter your faculty";
  2. $n = <stdin>;
  3. if ($n eq "biotechnology")
  4. {
  5. print "WELCOME";
  6. }
  7. else
  8. {
  9. print "Good bye";
#LO4VQk Pascal (fpc) 39 seconds ago
Compilation error
  1. program exPointers;
  2. var
  3. number: integer;
  4. iptr: ˄integer;
  5.  
  6. begin
  7. number := 100;
  8. writeIn("Number is: ", number);
#K9KIIY Java 40 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. {
#GQA5k8 Pascal (fpc) 43 seconds ago
Success
  1. program exPointers;
  2. var
  3. number: integer;
  4. iptr: ^integer;
  5.  
  6. begin
  7. number := 100;
  8. writeln('Number is: ', number);
  9.  
#prIoaG C 46 seconds ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. char s = "A";
  6. printf("char is %c", s+1);
  7. return 0;
  8. }
#BpyCfO C 49 seconds ago
Compilation error
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include "mpi.h"
  4. /*
  5.   after the user chooses the way of entering matrices and entering them:
  6.   convert every matrix to 1d array and second matrix is converted by column
  7.   then check if there's a remainder in the first matrix rows, the root will
  8.   do their multiplication and scatter the rest of rows to the process to
  9.   do
#Nzlo0E PHP 58 seconds ago
Success
  1. <?php
  2.  
  3. $var = 0;
  4. $rows[]['id']='365';
  5. foreach($rows as $row) {
  6.  
  7. if($row['id'] == '365') {
  8.  
  9. $var =$var + a;
#t1P7Es Bash 59 seconds ago
Success
  1. #!/bin/bash
  2. # your code goes here
  3. hostname='carl papa mac'
  4. SERVER_NAME='hostname'
  5. echo 'Youre running this script on ${SERVER_NAME}.'
#gdYzhU C 1 minute ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char a[10]="I";
  5. char b[10]="love";
  6. char c[20]="";
  7. char *p=NULL;
  8. char *q=NULL;
  9. p=a,q=c;
#krEAit PHP 17 seconds ago
Success
  1. <?php
  2.  
  3. $content = file_get_contents("php://stdin");
  4. $lines = explode("\n", $content);
  5.  
  6. $secret = $lines[0];
  7. $attempt = intval($lines[1]);
  8.  
  9. for ($i=0; $i < $attempt; $i++){
#Lahvaw C++ 5.1 1 minute ago
Success
  1. #include<stdio.h>
  2. int main( )
  3. {
  4. int i = 0 ;
  5. switch ( i )
  6. {
  7. case 0 :
  8. printf ( "\nCustomers are dicey" ) ;
  9. case 1 :
#AFHTq8 C 1 minute ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. main()
  4. {
  5. char linha1 = '*';
  6. int cont = 0;
  7. while(cont<=2)
  8. {
  9. cont = cont + 1;
#2Xoc8C Pascal (fpc) 41 seconds ago
Compilation error
  1. program exPointers;
  2. var
  3. number: integer;
  4. iptr: ^integer;
  5. y: ^word;
  6.  
  7. begin
  8. number := 100;
  9. writeln('Number is ', number);
#GKf1YA Pascal (fpc) 1 minute ago
Compilation error
  1. program exPointers;
  2. var
  3. number: integer;
  4. iptr: ˄integer;
  5.  
  6. begin
  7. number := 100;
  8. writeIn("Number is: ", number);
#4CcxVm Java 1 minute ago
Compilation error
  1. package control_notas;
  2. import java.util.Scanner;
  3. import java.text.DecimalFormat;
  4. /**
  5.  *
  6.  * @author Enyelbert
  7.  */
  8. public class Control_Notas {
#WfvZH8 C 57 seconds ago
Success
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. void reverseString_in_place(char* s);
  5.  
  6. int main(void) {
  7. char str[100];// your code goes here
  8.  
  9. strcpy(str, "String reverse in-place demo");
#vE5VIw Ocaml 1 minute ago
Compilation error
  1. (* your code goes here *)
  2. let average a b =
  3. let sum = a +. b in
  4. sum /. 2.0;;
  5.  
  6. Printf.printf "average is %d\n" (average 10 6);
#umKfgA C++14 1 minute ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. cout << " Hello " << endl;
  7.  
  8.  
#lm1GXb F# 1 minute ago
Success
  1. open System
  2.  
  3. // your code goes here
#5k2NJx C 43 seconds ago
Success
  1. #include <stdio.h>
  2.  
  3. unsigned char WholeDegrees(int TenthsDeg) {
  4. signed char TempTINT;
  5. TempTINT = (TenthsDeg + 5) / 10;
  6. return TempTINT;
  7. }
  8.  
  9. int main(void) {
#IsPsgF C++ 5.1 1 minute ago
Runtime error
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. for(int ang = 0; ang < 360; ang++)
  6. {
  7. int test = ang * 5981849;
  8. std::cout << test << std::endl;
  9. }
#zYPIFu Perl 1 minute ago
Success
  1. $string=<stdin>;
  2. chomp$string;
  3. $l=length(string);
  4. $p=0;
  5. while($p<$1)
  6. {
  7. $n=substr($string,$p,1);
  8. print"$n\n";
  9. $p++;