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

#n2iicb C++14 29 minutes ago
Success
  1. // Much shorter than the version below;
  2. // uses C++11 threads to parallelize the computation; also uses backtracking
  3. // Outputs all solutions for any table size
  4. #include <vector>
  5. #include <iostream>
  6. #include <iomanip>
  7. #include <thread>
  8. #include <future>
  9.  
#Y3CfLr C++14 11 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int t, y, u,i;
  5. cout<<"ведите $ ";
  6. cin>>t;
  7. t=y;
  8. u=79;
  9. i=u*y; // your code goes here
#Td70F6 Assembler 29 minutes ago
Compilation error
  1. int main()
  2. {
  3.  
  4. # This file is in AT&T syntax - see http://w...content-available-to-author-only...u.dk/Courses/DM18/Litteratur/IntelnATT.htm
  5. # and http://e...content-available-to-author-only...a.org/wiki/X86_assembly_language#Syntax. Both gdb and objdump produce
  6. # AT&T syntax by default.
  7. MOV $17984,%ebx
  8. MOV $7205,%eax
  9. MOV $1429,%ecx
#hpdrBP C 29 minutes ago
Success
  1. #include<stdio.h>
  2. #include<string.h>
  3. int main(){
  4. char strings[100], chars;
  5. int result=0,i,flag,j;
  6.  
  7. scanf("%s %c",&strings, &chars);
  8.  
  9. for(i =0 ; i<strlen(strings);i++){
#x0L9ZU Java 27 minutes ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. public class HelloWorld {
  5.  
  6. public static void main(String[] args) {
  7.  
  8. System.out.println("Hello,World!");
#bKSkrr C 27 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int n, i, erg = 1;
  5. printf("Bitte Fakultät eingeben: ");
  6. scanf("%d", &n);
  7. for(i=1;i<=n;i++)
  8. erg=erg*i;
  9.  
#j2oFce C++ 5.1 28 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int main() {
  7. int N;
  8. cin >> N;
  9. string C[N];
#hQIrGG Python 3 29 minutes ago
Runtime error
  1. NKTL=input()
  2. N = ''
  3. K = ''
  4. T = ''
  5. L = ''
  6. i = 0
  7. while NKTL[i] != ' ':
  8. N = N + NKTL[i]
  9. i = i+1
#4KVDST C 29 minutes ago
Success
  1.  
  2. int main()
  3. {
  4. int n1, n2, n3,sum;
  5. scanf("%d%d",&n1,&n2);
  6. sum=n1+n2;
  7. printf("%d",sum);
  8. return 0;}
#Xu8bYh Java 29 minutes ago
Compilation error
  1. import java.util.regex.Pattern;
  2.  
  3. class DetectHtml
  4. {
  5. // adapted from re posted by Phil Haack and modified to match better
  6. public final static String tagStart=
  7. "\\<\\w+((\\s+\\w+(\\s*\\=\\s*(?:\".*?\"|'.*?'|[^'\"\\>\\s]+))?)+\\s*|\\s*)\\>";
  8. public final static String tagEnd=
  9. "\\</\\w+\\>";
#r6jqkV Java 29 minutes ago
Success
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone {
#r9CD2e Java 29 minutes ago
Success
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone {
#h3SPqG Java 29 minutes ago
Success
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone {
#Li4jEH C 29 minutes ago
Compilation error
  1. #include <stdio.h>
  2. #define SWAP(a,b){int t=a; a=b; b=t;}
  3. void ArrSort(int C, char A[]);
  4. void printPicked(char arr[], int n)
  5. int PickedBack();
  6. void Pick(int n, char picked[], int toPick);
  7. int condition(char arr[]);
  8. char H[8];
  9. char P[8];
#RqKhsd Assembler 29 minutes ago
Compilation error
  1. int main()
  2. {
  3.  
  4. # This file is in AT&T syntax - see http://w...content-available-to-author-only...u.dk/Courses/DM18/Litteratur/IntelnATT.htm
  5. # and http://e...content-available-to-author-only...a.org/wiki/X86_assembly_language#Syntax. Both gdb and objdump produce
  6. # AT&T syntax by default.
  7. MOV $17984,%ebx
  8. MOV $7205,%eax
  9. MOV $1429,%ecx
#VGFmPC C++14 28 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <class T>
  5. struct SingleFunc
  6. {
  7. T t;
  8. void run() { t(); }
  9. };
#WzDKvv C++14 16 minutes ago
Success
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n;
  8. double a;
  9. cin >> n >> a;
#DT8Xbc Java 30 minutes ago
Compilation error
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone {
#Db8e6k C++14 30 minutes ago
Runtime error
  1. // Much shorter than the version below;
  2. // uses C++11 threads to parallelize the computation; also uses backtracking
  3. // Outputs all solutions for any table size
  4. #include <vector>
  5. #include <iostream>
  6. #include <iomanip>
  7. #include <thread>
  8. #include <future>
  9.  
#hw4dAl C++14 29 minutes ago
Success
  1. #include <cmath>
  2. #include <cstdio>
  3. #include <vector>
  4. #include <iostream>
  5. #include <algorithm>
  6. #include <list>
  7. using namespace std;
  8.  
#purk3t C 30 minutes ago
Success
  1. #include "stdio.h"
  2. #include "math.h"
  3. int main()
  4. {
  5. double x1,y1,x2,y2,z;
  6. while(scanf("%lf %lf %lf %lf", &x1,&y1,&x2,&y2)!=EOF){
  7. z=sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));
  8. printf("%.2lf\n",z);
#yQUaaO C++ 12 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. int main ( )
  4. {
  5. cout <<"C++ is easy to understand.";
  6. return 0;
  7. }
#uZZrgQ PHP 30 minutes ago
Success
  1. <?php
  2.  
  3. // your code goes here
  4.  
  5. $calories = 34;
  6. $serving = 100;
  7. $custom_serving = 150;
  8.  
  9. echo "The new caloric content is: " . ($calories / $serving) * $custom_serving;
#V8JEYC C++14 30 minutes ago
Runtime error
  1. // Much shorter than the version below;
  2. // uses C++11 threads to parallelize the computation; also uses backtracking
  3. // Outputs all solutions for any table size
  4. #include <vector>
  5. #include <iostream>
  6. #include <iomanip>
  7. #include <thread>
  8. #include <future>
  9.  
#MitWP3 Assembler 30 minutes ago
Compilation error
  1. # int main()
  2. # {
  3.  
  4. # This file is in AT&T syntax - see http://w...content-available-to-author-only...u.dk/Courses/DM18/Litteratur/IntelnATT.htm
  5. # and http://e...content-available-to-author-only...a.org/wiki/X86_assembly_language#Syntax. Both gdb and objdump produce
  6. # AT&T syntax by default.
  7. MOV $17984,%ebx
  8. MOV $7205,%eax
  9. MOV $1429,%ecx
#vzOMEf C++14 29 minutes ago
Success
  1. #include <iostream>
  2. #include <unordered_map>
  3. #include <vector>
  4. using namespace std;
  5.  
  6. int main() {
  7. unordered_map<int, vector<int> > m;
  8. // m.reserve(10);
  9. m[10];
#c0WbZe C++ 5.1 30 minutes ago
Runtime error
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int n;
  5. printf("n? ");
  6. scanf("%d", &n);
  7. int s = 2 * n;
  8. int a[s + 1][s + 1];
  9. int c = (s + 1) * (s + 1) - 1;
#5b25rx C++14 30 minutes ago
Success
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define Max 100005
  5.  
  6. struct node {
  7. int v;
  8. };
#jaQuhO C# 27 minutes ago
Compilation error
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main
  6. Console. Write(yjvytgcyt);
  7. }
  8. }
#7LVHXQ C++ 5.1 30 minutes ago
Compilation error
  1. // Much shorter than the version below;
  2. // uses C++11 threads to parallelize the computation; also uses backtracking
  3. // Outputs all solutions for any table size
  4. #include <vector>
  5. #include <iostream>
  6. #include <iomanip>
  7. #include <thread>
  8. #include <future>
  9.