Looking for an inspiration? Below you will find public programs submitted by other users.

Filter by: All Bash C C# C++ 4.8.1 C++11 Haskell Java Java7 Objective-C Pascal (fpc) Pascal (gpc) Perl PHP Python Python 3 Ruby SQL VB.NET Ada Assembler Assembler AWK (gawk) AWK (mawk) bc Brainf**k C++ 4.3.2 C99 strict CLIPS Clojure COBOL COBOL 85 Common Lisp (clisp) D (dmd) Erlang F# Factor Falcon Forth Fortran Go Groovy Icon Intercal JavaScript (rhino) JavaScript (spidermonkey) Lua Nemerle Nice Nimrod Node.js Ocaml Octave Oz PARI/GP Perl 6 Pike Prolog (gnu) Prolog (swi) R Scala Scheme (guile) Smalltalk Tcl Text Unlambda Whitespace

#SWr2eB C++ 4.8.1 8 hours ago
Compilation error
  1. int main(void)
  2. {
  3. char str[80], str2[80];
  4. int i;
  5. scanf("%s%d", str, &i);
  6. scanf("%79s", str);
  7. scanf("%s%*d%s", str, str2);
  8. char *strpbrk (str1, str2)
  9. printf ("%s)
#p7E9SL C++ 4.8.1 8 hours ago
Compilation error
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. #include <algorithm>
  5.  
  6. using namespace std;
  7.  
  8. bool func(string a, string b)
  9. {
#lvKDBv C++ 4.8.1 8 hours ago
Success
  1. //This program computes the average of two numbers.
  2. //You will modify this program so that it computes the average for five numbers
  3.  
  4. #include <iostream>
  5. using namespace std;
  6.  
  7. double result;
  8. double number1;
  9. double number2;
#i8pUYD C++ 4.8.1 8 hours ago
Compilation error
  1. int main(void)
  2. {
  3. char str[80], str2[80];
  4. int i;
  5. scanf("%s%d", str, &i);
  6. scanf("%79s", str);
  7. scanf("%s%*d%s", str, str2);
  8. char *strpbrk (str1, str2)
  9. printf ("%
#hRhEiw C++ 4.8.1 8 hours ago
Compilation error
  1. int main(void)
  2. {
  3. char str[80], str2[80];
  4. int i;
  5. scanf("%s%d", str, &i);
  6. scanf("%79s", str);
  7. scanf("%s%*d%s", str, str2с);
  8. char *strpbrk (str1, str2)
  9. printf ("%
#FglgqG C++ 4.8.1 8 hours ago
Success
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.  
  7. int e=1;
  8.  
  9. cout<<"\"Triangle Shape SHAPE \":\n\n";
#LCvi76 C++ 4.8.1 8 hours ago
Compilation error
  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include "stdafx.h"
  4. #include <string.h>
  5. #include <string>
  6. int main(void)
  7. {
  8. char str[80], str2[80];
  9. int i;
#YpN5wD C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int e=1;
  7. for (int a=1; a<=5; a++)
  8. {
  9. for (int b=4; b>=a; b--)
#dji0pk C++ 4.8.1 8 hours ago
Success
  1. #include<stdio.h>
  2. #define range 5000000000000000001
  3. unsigned long long int trailing_zeros(int n)
  4. {
  5. unsigned long long int p=n,sum1=0,sum2=0;
  6. while(p!=0)
  7. {
  8. sum1+=p/2;
  9. p=p/2;
#hOcV63 C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int a;
  7. int b;
  8. int T[2];
  9. cin>>a;
#FxrZTQ C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. #define func(x) x/x-x
  3. using namespace std;
  4. class abcd {
  5. public:
  6. static int a;
  7. int b;
  8. abcd(int x) {
  9. b=x;
#3Y26z1 C++ 4.8.1 8 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int a;
  7. int b;
  8. int T[1];
  9. int T[2];
#dMnxC3 C++ 4.8.1 8 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int a;
  7. int b;
  8. int [1];
  9. int T[2];
#e0RXsH C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int a;
  7. int b;
  8. int T[2];
  9. cin>>T[a];
#HOikV9 C++ 4.8.1 8 hours ago
Runtime error
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. // generating prime upto 10^6 using 2 normal for loops;
  7. int i,j,p[1000001],flag,k;
  8. for(int i=0;i<1000000;++i) p[i]=0;
  9. p[0]=2;
#z6FpMb C++ 4.8.1 8 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c;
  6.  
  7. a = { b = 10; };
  8. return 0;
  9. }
#vX178g C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. #include <stdlib.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. int n;
  7. cin >> n;
  8. int array[n];
  9. for ( int i = 0; i < n; i++)
#bbb51A C++ 4.8.1 8 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int e=1;
  7. for (int a=1;a<=5;a++)
  8. {
  9. for (int b=4;b>=a;b--)
#jfVNiS C++ 4.8.1 8 hours ago
Runtime error
  1. #include<iostream>
  2. #include<vector>
  3. #include<algorithm>
  4. #include<utility>
  5.  
  6. using namespace std;
  7.  
  8. #define FOR(i , a , n) for(int (i) = (a); (i) < (int)(n);++(i))
  9. #define pb push_back
#W6kxu5 C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int e=1;
  7. for (int a=1; a<=5; a++)
  8. {
  9. for (int b=4; b>=a; b--)
#xdzKxF C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. #include <stdlib.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. int n;
  7. cin >> n;
  8. int array[n];
  9. for ( int i = 0; i < n; i++)
#GRBNfi C++ 4.8.1 8 hours ago
Success
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #pragma comment (linker, "/STACK:16777216")
  3. #include <algorithm>
  4. #include <numeric>
  5. #include <string>
  6. #include <string.h>
  7. #include <map>
  8. #include <set>
  9. #include <vector>
#TiDgbq C++ 4.8.1 8 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int a;
  7. int b;
  8. int T[2];
  9. int T[2];
#dyL9Jb C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. #include <stdlib.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. int n;
  7. cin >> n;
  8. int array[n];
  9. for ( int i = 0; i < n; i++)
#dhUyHJ C++ 4.8.1 8 hours ago
Compilation error
  1.  
#uaxb4G C++ 4.8.1 8 hours ago
Compilation error
  1. #define PRINTW(a, b) <a "/include/" #b>
  2. #define PRINT(a, b) PRINTW(#a,#b)
  3.  
  4. #include PRINT(sys, types.h)
  5.  
  6. using namespace std;
  7.  
  8. int main() {
  9. // your code goes here
#gLpxUy C++ 4.8.1 8 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int a;
  7. int b;
  8. int T[a];
  9. int T[b];
#1MVEcs C++ 4.8.1 8 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. double result;
  5. double number1;
  6. double number2;
  7. double number3;
  8. double number4;
  9. double number5;
#C1pYGc C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. #include <stdlib.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. int n;
  7. cin >> n;
  8. int array[n];
  9. for ( int i = 0; i < n; i++)
#ZyIyYO C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int n,m;
  7. cin>>n>>m;
  8.  
  9. int a[m];