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

#r5RnZh Java 8 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. {
#dcWj6P Perl 12 minutes ago
Success
#!/usr/bin/perl # your code goes here my $line = qq{cissell!generic!speed-queen}; my @array; push(@array, split(/\!/, $line));
#SRW4u7 C++ 5.1 13 minutes ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <utility>
  4.  
  5. using namespace std;
  6.  
  7. pair<int, int> info[100010];
  8. int filhos[100010];
  9. typedef pair<int, int> pii;
#grx4Bk C++14 14 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. // programa que recebe 3 coeficientes e retorna sua raiz
  7.  
  8. int a, b, c ;
  9. float numero;
#ZTqzEP Java 12 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. {
#3P7aAq Java 14 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. {
#5id1Nz Fortran 2 minutes ago
Success
  1. program TEST
  2. CHARACTER :: A(2,2)
  3. REAL :: B(2,2)
  4. A(1,1)='C'
  5. A(2,1)='D'
  6. A(1,2)='E'
  7. A(2,2)='F'
  8. B(1,1)=1.0
  9. B(2,1)=2.0
#DvP0Tv Java 10 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 Outer_Demo{
  9. int num;
#wZdR4D C 2 minutes ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. size_t bits_needed(int n)
  6. {
  7. return floor(log2(n) + 1);
  8. }
#bqLQYg Python (Pypy) 14 minutes ago
Success
  1. print str('a')+"h"
#x0robK C++14 12 minutes ago
Success
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. #define HEIGHT 10
  5. #define WIDTH 10
  6.  
  7. using namespace std;
  8.  
  9. int main() {
#521FW7 C++14 15 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. // programa que recebe 3 coeficientes e retorna sua raiz
  7.  
  8. int a, b, c ;
  9. float numero;
#3k7p3m C 16 minutes ago
Runtime error
  1. /* This C program demonstrates receiving input and the use of a for loop.*/
  2. /* This C program is part of Homework 1, question 1.3*/
  3.  
  4. #include<stdio.h>
  5. #pragma warning(disable : 4996)
  6.  
  7. void main()
  8. {
  9. char ch;
#sD2tB1 C++14 4 minutes ago
Success
  1. #include <iostream>
  2. #include <memory>
  3. using namespace std;
  4.  
  5. int main() {
  6. auto ptr = std::make_unique<int>();
  7. auto c = std::shared_ptr<int>(ptr.release());
  8. auto lambda = [=] {
  9. std::cout << *c;
#n1Z3DQ C++ 5.1 56 seconds ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int t,n,q,N,i;
  6. cin>>t;
  7. while(t--){
  8. cin>>n>>q;
  9. int arr[n];
#7WVqca Java 16 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 Outer_Demo{
  9. int num;
#EiitSL C++14 16 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. // programa que recebe 3 coeficientes e retorna sua raiz
  7.  
  8. int a, b, c ;
  9. float numero;
#y3JV9G Java 17 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. {
#HOCcmC Java 17 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.  
  5. /*Leia um valor inteiro. A seguir, calcule o menor número de notas possíveis (cédulas)
  6.   no qual o valor pode ser decomposto. As notas consideradas são de
  7.   100, 50, 20, 10, 5, 2 e 1. A seguir mostre o valor lido e a relação de notas necessárias.
  8.  
  9. Entrada
#9253iQ Java 17 minutes ago
Compilation error
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int i, n;
  7. time_t t;
  8.  
  9. n = 1000;
#EEhrjg Java 16 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. {
#VLNPig Java 17 minutes ago
Success
  1. /* package whateve
  2.   String x = JOptionPane.showInputDialog("To ADD please Enter 1 \n"
  3.   + "To MULTIPLY please Enter 2 \n "
  4.   + "To Exist plaese Enter 3 \n");
  5.   int X = Integer . parseInt(x);
  6.   if (X==1) {
  7.   String y =JOptionPane.showInputDialog("Please enter the first number");
  8.   int Y = Integer .parseInt(y);
  9.   String z= JOptionPane.showInputDialog(" Please enter the second number");
#g3KWzj C++ 26 seconds ago
Success
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int n;
  6. cin>>n;
  7. int a[n];
  8. for(int i=0;i<n;i++)
  9. {
#SgKRjx C++14 18 minutes ago
Success
  1. #include <bits/stdc++.h>
  2. #include <tr1/unordered_map>
  3. typedef long long ll;
  4. typedef unsigned long long ull;
  5. #define clr(ma) memset(ma,-1,sizeof ma)
  6. #define inf 1000000001
  7. #define vi vector<int>
  8. #define pi pair<int,int>
  9. #define T pair<pi ,int >
#MoMuAL C++14 25 seconds ago
Success
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. using namespace std;
  5.  
  6. typedef int ll;
  7.  
  8.  
  9. int T, n, q, ival, jval, tmp;
#myyVnj C 18 minutes ago
Success
  1. #include "stdio.h"
  2. #include "string.h"
  3. #include "stdlib.h"
  4. #include "stdint.h"
  5. #include <stdbool.h>
  6.  
  7. #define TCP_bufferlen 500 //length of tx/rx TCP buffer - i.e. ca. 200 ascii codes + AT string header
  8. typedef struct{
  9. bool full;
#LXEPsn C# 18 minutes ago
Success
  1. using System.IO;
  2. using System;
  3. using System.ComponentModel;
  4. using System.Linq.Expressions;
  5. using System.Collections.Generic;
  6.  
  7. class Program
  8. {
  9. public string Abc {get; set; }
#XHPsLg C++ 5.1 10 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char tablero[5][5]={' ','|',' ','|',' ','--', '+', '-', '+', '--', ' ','|',' ','|',' ','-', '+', '-', '+', '-', ' ','|',' ','|',' '};
  6. for(int i = 0; i < 5;i++){
  7. for(int j = 0; j < 5;j++) {cout<<tablero[i][j];} cout<<endl;
  8. }
  9.  
#4Y1dbS PHP 12 minutes ago
Success
  1. <?php
  2.  
  3. // your code goes here
  4.  
  5. // your code goes herestuff
  6.  
  7. $stuff_arr = array();
  8.  
  9. if ( empty($dog) ){
#CP2pfA C++ 19 minutes ago
Time limit exceeded
  1. #include<iostream>
  2. #include<string>
  3. #include<cmath>
  4. #include<algorithm>
  5.  
  6. using namespace std;
  7. int main()
  8. {
  9. int n,m;