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

#QW6wdh Java 9 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. {
#Ik897n Java 9 minutes ago
Compilation error
  1. /* Program Name: CollegeAdmission.cpp
  2.   Function: This program determines if a student will be admitted or rejected.
  3.   Input: Interactive
  4.   Output: Accept or Reject
  5. */
  6.  
  7. #include <iostream>
  8. using namespace std;
  9. int main()
#qi9dqd C 9 minutes ago
Success
  1. /* Temperature Conversion Program, Fahrenheit to Celsius */
  2.  
  3. #include<stdio.h>
  4.  
  5. /* print Fahrenheit-Celsius table for fahr = 0,20 ... 300 */
  6.  
  7. int main()
  8. {
  9. printf("A program print Fahrenheit-Celsius\n");
#S2Mwlr Java 9 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. {
#GErrLN PHP 9 minutes ago
Success
  1. <?php
  2.  
  3.  
  4. $creditBalance = 40000;
  5. $percent = 1.03;
  6. $servicePayment = 1000;
  7. $monthlyPaiment = 5000;
  8. $paymentTotal = 0;
#Keo4cO C++ 5.1 9 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n,m,i,j,x=0,a[10][10];
  6. cin>>n>>m;
  7. for(i=0;i<n;i++)
  8. {
  9. for(j=0;j<m;j++)
#dfjZar 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 Ideone
  9. {
#C84CMa PHP 10 minutes ago
Success
  1. def xor(enc, key):
  2. cpt = 0
  3. res = ""
  4. for integer in enc:
  5. res= res + chr(integer^ord(key[cpt%len(key)]))
  6. cpt = cpt + 1
  7. return res
  8.  
  9. enc = (22,7,26,20,22,7,28,3,1,6,0,21,19,21,27,5,30,15,12,31,30,18,2,16,7,8,28,6)
#MMSsK0 C 10 minutes ago
Success
  1. // C code
  2. // This program will calculate the sum of 10 positive integers.
  3. // Developer: Faculty CMIS102
  4. // Date: Jan 31, XXXX
  5. #include <stdio.h>
  6. int main ()
  7. {
  8. /* variable definition: */
  9. int count, value, sum;
#ZOZ85F C 10 minutes ago
Compilation error
  1. /* Temperature Conversion Program, Fahrenheit to Celsius */
  2.  
  3. #include<stdio.h>
  4.  
  5. /* print Fahrenheit-Celsius table for fahr = 0,20 ... 300 */
  6.  
  7. int main()
  8. {
  9. printf("A program print Fahrenheit-Celsius"\n);
#QIqqfd Java 9 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. {
#jhbPBD C 10 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. //this is my first program
  5. printf("good morning");
  6.  
  7. return 0;
  8. }
#bsOldZ Pascal (gpc) 10 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. const int n =4;
  4. int data[n][n] = {
  5.  {3,3,2,5},
  6. {2,3,3,5},
  7. {1,1,3,1},
  8. {2,3,3,2}
  9. };
#yog72x C 11 minutes ago
Success
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. double gallon1,gallon2,gallon3,mile1,mile2,mile3;
  6.  
  7. printf("Welcome to the Sears mileage calculator.\n\n");
  8.  
  9. printf("This program will calculate the miles per gallon for you for three tanks of gas\n");
#G0Ienc Python 2 minutes ago
Success
  1. import math
  2.  
  3. def isPrime(factor):
  4. root = int(math.sqrt(factor))
  5. for x in xrange (2, root):
  6. if factor % x == 0:
  7. return False
  8. #x += 2
  9. return True
#BDwJ66 C 11 minutes ago
Success
  1. //// 美しさより未経験者への分かり易さ重視
  2.  
  3. #include <stdio.h>
  4.  
  5.  
  6. //// ここから代表的な値の定義
  7.  
  8. #define COLUMN 5 // マップの列数
  9. #define ROW 4 // マップの行数
#8p4muw PHP 47 seconds ago
Success
  1. <?php
  2.  
  3.  
  4. $OpName = "ЙОПТА ПРАГРАМИСТ, пиздатый))";
  5.  
  6. for ($i = 1; $i <= 10; $i++) {
  7. echo "{$i}-й раз говорю, что ты - {$OpName}\n";
  8. }
#y6udQg C++14 11 minutes ago
Success
  1. #include <iostream>
  2. #include <string>
  3. #include <unordered_set>
  4. using namespace std;
  5.  
  6. static unordered_set<string> f = {"a", "b", "c"};
  7.  
  8. int main() {
  9. cout << f.size();
#Sbwrhn C 11 minutes ago
Success
  1. #include <stdio.h>
  2. int temp=0;
  3. void swap(int *x,int *y){
  4. temp=*x;
  5. *x=*y;
  6. *y=temp;
  7. }
  8. int main(void) {
  9. int a=10,b=20;
#SjCtyj C++14 9 minutes ago
Runtime error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. const int N = 5, K = 3;
  5. int A[N];
  6. int cnt = 0;
  7.  
  8. void print() {
  9. for (int i = 0; i < N; i++)
#nDQiUh C++ 5.1 11 minutes ago
Time limit exceeded
  1. #include<bits/stdc++.h>
  2. #include<iostream>
  3. using namespace std;
  4. #define fre freopen("input-1.txt","r",stdin),freopen("output-1.txt","w",stdout)
  5. #define abs(x) ((x)>0?(x):-(x))
  6. #define M 1000000007
  7. #define lld signed long long int
  8. #define pp pop_back()
  9. #define ps(x) push_back(x)
#FRc5aW C++14 8 minutes ago
Success
  1. #include <array>
  2. #include <vector>
  3. #include <cstdint>
  4. #include <iostream>
  5.  
  6. int main()
  7. {
  8. std::vector<std::array<uint8_t, 3>> lol;
  9. std::array<uint8_t, 3> kek {1,2,3};
#7fIo1b Java 11 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. {
#itCkZn Java 11 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. {
#LEAHiA Pascal (fpc) 12 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. const int n =4;
  4. int data[n][n] = {
  5.  {3,3,2,5},
  6. {2,3,3,5},
  7. {1,1,3,1},
  8. {2,3,3,2}
  9. };
#IwIHLb C 12 minutes ago
Runtime error
  1. #include <stdio.h>
  2. #define SIZE 10
  3. void main()
  4. {
  5. char c;
  6. int i=-1, j;
  7. int num[SIZE];
  8. do
  9. {
#UpJAp2 C++14 12 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int i = 5;
  7. i = ++i + ++i;
  8. cout<<i;
  9. return 0;
#MazxV4 C 12 minutes ago
Success
  1. #include <stdio.h>
  2. int main ()
  3. {
  4. /* variable definition: */
  5. int count, value, sum;
  6. double avg;
  7. /* Initialize */
  8. count = 0;
  9. sum = 0;
#sOXS71 C# 12 minutes ago
Success
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. class Program
  5. {
  6. static IEnumerable<string> Parts(string input, out int i)
  7. {
  8. var list = new List<string>();
  9. int level = 1, start = 1;
#bUyQho C 12 minutes ago
Success
  1. // George Juarez
  2.  
  3. #include <stdio.h>
  4.  
  5. int main(void){
  6. int y = 5;
  7. int *yPtr;
  8. yPtr = &y; // assigns the address of the variable y to pointer yPtr
  9. // if the y is at address 600000, then yPtr is assigned to 600000