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

#L29t9G C++ 5.1 6 seconds ago
Success
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. using namespace std;
  5.  
  6. vector<int> wynik;
  7. vector<int> v[301];
  8. int N, w;
  9. int vis[301];
#19l9BK Python 10 seconds ago
Success
  1. def y(x):
  2. if x==0:
  3. return 81
  4. else:
  5. return y(x-1)*3
  6. print(2)
#MzfE74 C 10 seconds ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. Int mypower (int v, int p);
  4. int v;
  5. int p;
  6. If (v> p)
  7. {
  8. Printf(“start of function mypower(%d %d)\n” v,P);
  9. Val= 1;
#00ld46 Python 12 seconds ago
Success
  1. def y(x):
  2. if x==0:
  3. return 81
  4. else:
  5. return y(x-1)*3
  6. print y(2)
#TFGCeN Java 24 seconds 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. {
#KVzmfX Python (Pypy) 24 seconds ago
Runtime error
  1. def y(x):
  2. if x==0:
  3. return 600
  4. else:
  5. return y(x-1)*0.5
  6. print y(-2)
#7SQcEa Python 26 seconds ago
Success
  1. def y(x):
  2. if x==0:
  3. return 81
  4. else:
  5. return y(x-1)*3
  6. print y(3)
#W5xhhk C 29 seconds ago
Success
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <stdlib.h>
  4.  
  5. int cmpfunc (const void * a, const void * b){
  6. return ( - *(int*)a + *(int*)b );
  7. }
  8.  
  9. int main() {
#PcZGjd Java 32 seconds 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. {
#PDdzNQ Python 34 seconds ago
Runtime error
  1. def x(y):
  2. if y==0:
  3. return 17
  4. else:
  5. return x(y-1)+4^x
  6. print x(3)
#TIRJoU Java 42 seconds ago
Compilation error
  1. package com.mybank.gui;
  2.  
  3. import com.mybank.domain.*;
  4. import com.mybank.data.DataSource;
  5. import java.awt.*;
  6. import java.awt.event.*;
  7. import javax.swing.*;
  8. import java.io.IOException;
#u8qi8w Java 43 seconds 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. {
#npcSBt C++14 51 seconds ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. typedef struct coord
  5. {
  6. int x;
  7. int y;
  8. int loja;
  9. };
#RHHYKs C 9 seconds ago
Success
  1. #include <stdio.h>
  2. int a = 5;
  3. int b = 6;
  4.  
  5. void point(int *p) {
  6. *p = a;
  7. }
  8.  
  9. void point2(int *p) {
#2h98B3 PHP 55 seconds ago
Success
  1. <?php
  2.  
  3.  
  4. echo "Hello, Kitty-Kitty";
  5.  
  6. ?>
#Escu1c C 56 seconds ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. Int mypower (int v, int p)
  4. int v;
  5. int p;
  6. If (v> p)
  7. {
  8. Printf(“start of function mypower (%d %d)\n” v,P)
  9. Val= 1;
#6aOWZK Pascal (fpc) 56 seconds ago
Success
  1. var
  2. i:byte;
  3. begin
  4. for i:=1 to 1 do
  5. writeln(i);
  6. end.
#UjzeFz Python 17 seconds ago
Runtime error
  1. # your code goes here
  2. # your code goes here
  3. def valid_parentheses(string):
  4. #your code here
  5. stck = Stck()
  6. check = {'(':1,')':-1,'[':2,']':-2,'{':3,'}':-3}
  7. print string[0]
  8. for i in string:
  9. print i
#myoVzt Java 57 seconds ago
Compilation error
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4. import java.math.BigDecimal;
  5.  
  6. /* Name of the class has to be "Main" only if the class is public. */
  7. class Ideone
  8. {
  9. public static void main (String[] args) throws java.lang.Exception
#mLAZRX Python 59 seconds ago
Success
  1. def y(x):
  2. if x==0:
  3. return 81
  4. else:
  5. return y(x-1)*3
  6. print y(3)
#M7QMdY Python 1 minute ago
Runtime error
  1. def y(x):
  2. if x==0:
  3. return 81
  4. else:
  5. return y(x-1)*3
  6. print y(3)
  7. ellipse, (1,1,1,1)
  8. draw
#DvtsaG Python 1 minute ago
Compilation error
  1. def y(x):
  2. if x==0:
  3. return 17
  4. else:
  5. return y=(x-1)+4
  6. print y(-2)
#KPiovN Python 1 minute ago
Success
  1. # your code goes here
  2. def thd_mul(n,m):
  3. if(n>1 and m<1):
  4. thd_mul(n-1,9);
  5. if(n>0 and m>0):
  6. thd_mul(n,m-1)
  7. print(n,m,n*m);
  8. thd_mul(9,9)
#umHvXk C++14 8 seconds ago
Compilation error
  1. #include <bits\stdc++.h>
  2. int main() {
  3.  
  4. int numberOfDivisors = 1;
  5. int t,max=0;
  6. scanf("%d",&t);
  7.  
  8. while(t--){
  9.  
#yaqA6e PHP 1 minute ago
Success
  1. <?php
  2. $mass = ["Яблоко", "apple", "red", "Красный", "adВ"];
  3.  
  4. foreach ($mass as $key => $value)
  5. {
  6. $tempArr = str_split($value);
  7. $flag = 0;
  8. $en;
  9. $diff;
#i4Fkrk C 11 seconds ago
Runtime error
  1. #include<stdio.h>
  2. void main(){
  3. int a;
  4. while(1){
  5. scanf("%d",&a);
  6. if(a!=42){
  7. printf(a);
  8. }
  9. else{
#IAhu1P C++14 36 seconds ago
Success
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. const int HIGH_SCORE = 95;
  8. int score1, score2, score3;
  9. double average;
#QI56vq C++14 42 seconds ago
Compilation error
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int i,n;
  6. cin>>n;
  7. for(i=0;i<n;i++)
  8. {
  9. int a[50];
#yQWQwC PHP 1 minute ago
Success
  1. <?php
  2.  
  3. $array = array( 'vantus', 'mantus', 'dumping', 'pumping', 'dumpileer', 'idumpik' );
  4. $f = 'dump';
  5. $result = preg_grep("/^/$f/",$array);
  6. print_r($result);
  7. ?>
#KuOs5W Java 1 minute ago
Compilation error
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4. import java.math.BigDecimal;
  5.  
  6. /* Name of the class has to be "Main" only if the class is public. */
  7. class Ideone
  8. {
  9. public static void main (String[] args) throws java.lang.Exception