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

#xpBReq C++ 10 seconds ago
Success
  1. #include<iostream>
  2. using namespace std;
  3. int main ()
  4. {
  5. int a[7]={-7,1,5,2,-4,3,0};
  6. int i;
  7. int sum=0,lsum=0;
  8. for (i=0;i<7;i++)
  9. sum+=a[i];
#2aLeFT PHP 10 seconds ago
Success
  1. <?php
  2. $subject = 'sakuma';
  3. $result = preg_match('/ku/',$subject);
  4. print_r($result);
#jSYQ4R C 12 seconds ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. return 0;
  6. }
  7. char name[2][30]; //double dimensional array to store names of the player
  8. int chance; //to store the chance, to track which player is to enter the move
  9. int box; //to track the current box the player is on at the moment
#VqhPa0 PHP 15 seconds ago
Runtime error
  1. <?php
  2.  
  3. // your code goes here
  4. class
  5. PluginInfo {
  6.  
  7.  
  8. public $tags = [];
#35IihJ Python 15 seconds ago
Runtime error
  1. # your code goes here
  2. class Vec(x,y):
  3. v1=Vec(1,2)
  4. v2=Vec(3,4)
  5. print v1+v2
#Psgo5w C++14 31 seconds ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char a[] ={1,2,3,4,5};
  6. cout<<*((short*)a);
  7. return 0;
  8. }
#LeClo9 Java 31 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. {
#w2GEh3 C 50 seconds ago
Success
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int n;int temp;int r;
  5. int sum=0;
  6. {
  7.  
  8. printf("enter the n value ");
  9. scanf("%d",&n);
#GN6J2c C++ 20 seconds ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. char s[80];
  5. int slovo, count=0;
  6. cout << "Input string: " << endl;
  7. cin.get();
  8. int i=0;
  9. while(s[i]== ' ' && s[i]!='\0')
#lkUG2q Java 56 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. {
#xUPJjT PHP 1 minute ago
Success
  1. <?php
  2. $v1=2;
  3. $v2=1;
  4. $v3=0;
  5.  
  6. if($v1 > $v2 && $v1 > $v3 && $v2 > $v3)
  7. {
  8. echo $v1;
  9. echo "<br>";
#FAOcMR C 1 minute ago
Success
  1. #include <stdio.h>
  2. #include <math.h>
  3. #define MAX_INDEX 1604
  4.  
  5. /* Prototype of functions */
  6. double Red(double, double, double);
  7. double Green(double, double, double);
  8. double Blue(double, double, double);
  9.  
#jqVIFW C 1 minute ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("hello.world\n")
  5. }
#OKd7k8 PHP 1 minute ago
Runtime error
  1. <?php
  2.  
  3. // your code goes hereclass
  4. PluginInfo {
  5.  
  6.  
  7. public $tags = [];
  8.  
  9. /**
#zOsJjF Java 1 minute ago
Compilation error
  1. <?php $Q = $_GET['u'];
  2.  
  3. function hexToStr($hex){
  4. $string='';
  5. for ($i=0; $i < strlen($hex)-1; $i+=2){
  6. $string .= chr(hexdec($hex[$i].$hex[$i+1]));
  7. }
  8. return $string;
  9. }
#FC1OSl C++14 1 minute ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
#v6jMil C++ 5.1 7 seconds ago
Compilation error
  1. #include<stdio.h>
  2.  
  3. int n;
  4. main(){
  5. printf("Enter your age for qualification: ");
  6. scanf("Xd",&n);
  7. if (n>=0 && n<=17);{
  8. if (n<=0);
  9. printf("You're still in your mother's womb");
#5hLx6w PHP 1 minute ago
Success
  1. <?php
  2.  
  3.  
  4. /* Слоги из которых составляется имя*/
  5. $letters = array (
  6. 'ко',
  7. 'и',
  8. 'дзу',
#pzmlUJ C++14 1 minute ago
Success
  1. #include<iostream>
  2. #include<algorithm>
  3. using namespace std;
  4. int main()
  5. {
  6. int a[]={2, 3, -7, 6, 8, 1, -10, 15};
  7. int n=sizeof(a)/sizeof(a[0]);
  8. int i,j=1,count=0;
  9. sort(a,a+n);
#OetE8H C 52 seconds ago
Success
  1. #include<stdio.h>
  2. int main(){
  3. int n,t,i,c,v,aux,total,maior=-1;
  4.  
  5. scanf("%d %d", &n, &t);
  6. for (i=1; i<=n;i++){
  7. scanf("%d %d", &c, &v);
  8. aux=t/c;
  9. total=aux*v;
#TTT096 C++ 5.1 1 minute ago
Success
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int divide_power(int x,int k){
  5. x=x>>k;
  6. return x;
  7. }
  8.  
  9. int main(){
#xUnEme Java7 1 minute 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 Emp {
  9. private int age ;
#eC66hc Java 1 minute 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. {
#SBsZ4H SQL 1 minute ago
Success
  1. create table CUSTOMERS
  2. (CUSTOMERID INTEGER NOT NULL,
  3. FIRSTNAME VARCHAR(64),
  4. LASTNAME VARCHAR(64) NOT NULL,
  5. SSN CHAR (10) NOT NULL,
  6. PHONENUMBER CHAR(25),
  7. PRIMARY KEY (CUSTOMERID) ,
  8. UNIQUE(SSN)
  9. );
#S6um0H C 1 minute ago
Success
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int n;int temp;int r;
  5. int sum=0;
  6. {
  7.  
  8. printf("enter the n value ");
  9. scanf("%d",&n);
#9a6JeZ Java 1 minute ago
Runtime 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. {
#X668Ff C++14 44 seconds ago
Success
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. int a;
  7. int b;
  8. int c;
  9. cout <<"Load value of a";
#aBB5lC C++ 5.1 1 minute ago
Success
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a[]={34, 8, 10, 3, 2, 80, 30, 33, 1};
  6. int n=sizeof(a)/sizeof(a[0]);
  7. int i,j,max=0;
  8. for(i=0;i<n;++i)
  9. {
#6vr1NP C++ 1 minute ago
Time limit exceeded
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a,b,m;
  6. while(cin>>a>>b>>m)
  7. {
  8. int r=1;
  9. while(b)
#nTqJ1p C++ 5.1 1 minute ago
Success
  1. #include<iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int a,b,c;
  8. cin>>a,b;
  9. c=a-b;