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

#SI3jSQ C 13 seconds ago
Time limit exceeded
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void choose_primary(int N, double** A, int k, int *det);
  5. void normalize_first_string(int N, double** A, int k);
  6. void deduct(int N, double** A, int k);
  7. void scan_matrix(int N, double **A);
  8. void scan_b(int N, double **A);
  9. void print_extended(int N, double **A);
#7PyPLJ C++14 13 seconds ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3. #include<string.h>
  4. #include<stdio.h>
  5. void move(char s[])
  6. {
  7. int n=s.length();
  8. int i=0,j=0;
  9. for(;i<=n;)
#m0Qb1c C++ 21 seconds ago
Compilation error
  1. #include<iostream>
  2. using namespace std;
  3. class complex
  4. {
  5. int r,i;
  6. public:
  7. complex(int a,int b)
  8. { r=a;
  9. i=b;
#BPFMy3 Groovy 25 seconds ago
Runtime error
  1. // your code goes here
  2.  
  3. def list = []
  4.  
  5. println list;
  6. println list.sort{it}.last();
  7. println working
#mIuGrW C 34 seconds ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i=-1,j=0,k=1;
  5. int r=++i || j++ && --k;
  6. printf("%d%d%d%d",i,j,k,r);
  7. return 0;
  8. }
#DvUfqt Python (Pypy) 39 seconds 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. {
#TjSNkc Bash 53 seconds ago
Success
  1. #!/bin/bash
  2. # your code goes here
  3. #!/bin/sh
  4. msg1="one"
  5. msg2="$msg1 two"
  6. msg3="$msg2 three"
  7. echo $msg3
#YOnQDB Java 58 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. import java.util.regex.*;
  7.  
  8. /* Name of the class has to be "Main" only if the class is public. */
  9. class Ideone
#1MFaKv Java 58 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. {
#kmeez8 Groovy 54 seconds ago
Runtime error
  1. // your code goes here
  2.  
  3. def list = []
  4.  
  5. println list;
  6. println list.sort{it}.last();
  7. println working
#yY8uoM C++14 1 minute ago
Compilation error
  1. #include <bits/stdtr1c++.h>
  2.  
  3. using namespace std;
  4.  
  5. vector<int> vertex[34];
  6. bool seen[34];
  7.  
  8. int main(){
  9. int numMap; cin >> numMap;
#4rm3MZ C++14 13 seconds ago
Success
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4.  
  5. struct TreeNode{
  6. int data;
  7. TreeNode* left;
  8. TreeNode* right;
  9. };
#J4qsPc C 23 seconds ago
Compilation error
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(void) {
  4. int a = 0;
  5. for (int i = 1; i <= 50; i++)
  6. a = i;
  7.  
  8. system.print("%d", a);
  9. return 0;
#SiUJZY Pascal (fpc) 2 minutes ago
Compilation error
  1. var
  2. bil : integer;
  3. begin
  4. readln(bil);
  5. if bil > 0 then
  6. writeln(' positif ');
  7. else
  8. readln(bil);
  9. if bil = 0 then
#i4HflW 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. {
#W3LcyE C++ 5.1 2 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. for(int i=0;i<=1000;i++)
  6. cout<<i<<endl;
  7. return 0;
  8. }
#Ws4Spt C 2 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int i=-1,j=0,k=1;
  5. int r=++i || j++ && --k;
  6. printf(%d%d%d%d,i,j,k,r);
  7. return 0;
  8. }
#QSz3rQ C 3 seconds ago
Success
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4.  
  5. int main()
  6. {
  7. int i = 0, l = 0, j, k, space = 0, count = 0, init = 0, min = 0, max = 0, len = 0, flag;
  8. char a[100], b[30][20], c[30], d[30], minP[30], maxP[30];
  9.  
#ViO5Ji C 2 minutes ago
Compilation error
  1. #include<stdio.h>
  2. #include<conio.h>
  3. #include<string.h>
  4.  
  5. void main()
  6. { char str1[20];
  7. char str2[20];
  8. int x,y,n,r,counter1,counter2,points=0;
#KnVMG8 Java 2 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. {
#D36Q9S Python 3 2 minutes ago
Success
  1. import calendar
  2. import datetime
  3. date_start = datetime.datetime(2015, 8, 1, 6, 0, 0)
  4. a = calendar.monthrange(date_start.year, date_start.month)[1]
  5. print(a)
#AMMKUu C 7 seconds ago
Compilation error
  1. #include <stdio.h>
  2. int main () {
  3.  
  4. int i, Inteiro_1, Inteiro_2, Soma_1, Soma_2, Resto, Aux;
  5. Aux=0;
  6. scanf ("%d %d", &Inteiro_1 &Inteiro_2);
  7. Soma_1=0;
  8. for(i=1;i<Inteiro_1;i++) {
  9. Resto=Inteiro_1%i;
#7dgb3z C 2 minutes ago
Success
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int a,b,i;
  5. while(i<1000){
  6. i++;
  7. scanf("%d %d",&a,&b);
  8. if(a<2^32 && b<2^32)
  9. printf("%d\n",b-a);
#XbP3la C 2 seconds ago
Running
  1. #include <stdio.h>
  2. void main()
  3. {
  4. int i,n;
  5. printf("enter the range of series to be added :");
  6. scanf("%d",&n);
  7. printf("\n");
  8. for(i=1;i<=n;i++)
  9. { if(i<n)
#W4sNkY C 3 minutes ago
Success
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int x;
  5. int num = 1234;
  6. x=findFun(num);
  7. printf("Number %d is: %d",num,x);
  8.  
  9. }
#7Mg0aW Groovy 3 minutes ago
Success
  1. // your code goes here
  2.  
  3. def list = ['Groovy', 'is', 'great!']
  4.  
  5. println list;
  6. println list.last();
  7. println list.first();
#o8WHER C++14 2 minutes ago
Compilation error
  1. #include <bits/stdtr1c++.h>
  2.  
  3. using namespace std;
  4.  
  5. vector<int> vertex[34];
  6. bool seen[34];
  7.  
  8. int main(){
  9. int numMap; cin >> numMap;
#JTZrcu C 3 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. void * data;
  6. int new;
  7. printf("size = %d", sizeof(data));
  8. return 0;
  9. }
#RUnlg3 Java 4 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. {
#VnvJvy C# 2 minutes ago
Success
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. internal class Square
  5. {
  6. public static double Xposition=0;
  7. private double m_S;
  8. private double m_PX = 0;
  9. private double m_PY = 0;