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

Filter by: All Bash C C# C++ 4.9.2 C++14 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 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) Python (Pypy) R Scala Scheme (chicken) Scheme (guile) Smalltalk Tcl Text Unlambda Whitespace

#nMx3KS C++ 4.9.2 13 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i,n,a,b,k=1,q=1,e=3,w=0,x=0;
  6. a=1;
  7. b=2;
  8. n=18;
  9. for(i=1;i<=n;i++)
#HBZE7j C++ 4.9.2 13 hours ago
Compilation error
  1. #include <iostream>
  2. #include <fstream>
  3. #include <sys/time.h>
  4. #include <float.h>
  5.  
  6. using namespace std;
  7.  
  8. struct timeval start_time,end_time;
  9.  
#ZxLMZ2 C++ 4.9.2 13 hours ago
Success
  1. #include <iostream>
  2. #include <cstdio>
  3.  
  4. struct Node {
  5. int key;
  6. Node** child;
  7. };
  8.  
  9. int main() {
#HXXbcy C++ 4.9.2 13 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i,n,a,b,k=1,q=1,e=3,w=0,x=0;
  6. a=1;
  7. b=2;
  8. n=18;
  9. for(i=1;i<=n;i++)
#cvmBrW C++ 4.9.2 13 hours ago
Success
  1. #include <iostream>
  2. #include <fstream>
  3. #include <sys/time.h>
  4. #include <float.h>
  5.  
  6. using namespace std;
  7.  
  8. struct timeval start_time,end_time;
  9.  
#USq9Yq C++ 4.9.2 13 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class RationalNumber
  5. {
  6. public:
  7. RationalNumber(); //default constructor: initializes private data to "default" values
  8. RationalNumber(int n = 0, int d = 1); //constructor: initializes balance to d + c/100 and rate to r
  9. void setNumerator(int newnum);
#Ifgth5 C++ 4.9.2 13 hours ago
Compilation error
  1.  
  2. #include <iostream>
  3. #include <cstring> // Needed for NULL
  4. #include "List.h"
  5. using namespace std;
  6. int main()
  7. {
  8. List lst;
  9. int choice, val;
#erbOxE C++ 4.9.2 13 hours ago
Success
  1. #include <iostream>
  2. #include <fstream>
  3. #include <sys/time.h>
  4. #include <float.h>
  5.  
  6. using namespace std;
  7.  
  8. struct timeval start_time,end_time;
  9.  
#zEyY87 C++ 4.9.2 13 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class RationalNumber
  5. {
  6. public:
  7. RationalNumber(); //default constructor: initializes private data to "default" values
  8. RationalNumber(int n = 0, int d = 1); //constructor: initializes balance to d + c/100 and rate to r
  9. void setNumerator(int newnum);
#zqLuyT C++ 4.9.2 13 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int count(char* str,char chr)
  5. {
  6. if (*str==0)
  7. return 0;
  8. if(*str==chr)
  9. return 1+count(str+1,chr);
#lDffXA C++ 4.9.2 13 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int count(char* str,char chr)
  5. {
  6. if (*str==0)
  7. return 0;
  8. if(*str==chr)
  9. return 1+count(str+1,chr);
#8vgeNQ C++ 4.9.2 13 hours ago
Runtime error
  1.  
  2. #include <iostream>
  3. #include <cstring> // Needed for NULL
  4. using namespace std;
  5.  
  6.  
  7. class List
  8. {
  9. protected:
#GO6Pn8 C++ 4.9.2 13 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class RationalNumber
  5. {
  6. public:
  7. RationalNumber(); //default constructor: initializes private data to "default" values
  8. RationalNumber(int n = 0, int d = 1); //constructor: initializes balance to d + c/100 and rate to r
  9. void setNumerator(int newnum);
#YfBz0S C++ 4.9.2 13 hours ago
Success
  1. #include<bits/stdc++.h>
  2. #include<vector>
  3. #include<cstdio>
  4. #define FOR(i,n) for(int i=0;i<n;i++)
  5. using namespace std;
  6. int main()
  7. {
  8. int n,arr[10000];
  9. scanf("%d",&n);
#fsY7gq C++ 4.9.2 13 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int count(char* str,char chr)
  5. {
  6. if (*str==0)
  7. return 0;
  8. if(*str==chr)
  9. return 1+count(str+1,chr);
#h5FVsO C++ 4.9.2 13 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int p;
  7. long long unsigned int n,k,m;
  8. cin>>p;
  9. for(int i=0;i<p;i++)
#t5OfKQ C++ 4.9.2 13 hours ago
Success
  1. #include <iostream>
  2. #include <fstream>
  3. #include <sys/time.h>
  4. #include <float.h>
  5.  
  6. using namespace std;
  7.  
  8. struct timeval start_time,end_time;
  9.  
#2xO3MD C++ 4.9.2 13 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5.  
  6. int main(void) {
  7. int x;
  8. for(; scanf("%d",&x) > 0 && x != 42; printf("%d\n", x));
  9. return 0;
#pvDvcK C++ 4.9.2 13 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int p;
  7. long long unsigned int n,k,m;
  8. cin>>p;
  9. for(int i=0;i<p;i++)
#nlkvQr C++ 4.9.2 13 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int p;
  7. long long unsigned int n,k,m;
  8. cin>>p;
  9. for(int i=0;i<p;i++)
#UdXW51 C++ 4.9.2 13 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int p;
  7. long long unsigned int n,k,m;
  8. cin>>p;
  9. for(int i=0;i<p;i++)
#MoklLE C++ 4.9.2 13 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int p;
  7. long long unsigned int n,k,m;
  8. cin>>p;
  9. for(int i=0;i<p;i++)
#XPuBpa C++ 4.9.2 13 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int count(char* str,char chr)
  5. {
  6. if (*str==0)
  7. return 0;
  8. if(*str==chr)
  9. return 1+count(str+1,chr);
#8w3Tai C++ 4.9.2 12 hours ago
Compilation error
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <climits>
  4. using namespace std;
  5.  
  6. void Int2Char(char *Result, unsigned int ToConvert)
  7. {
  8. uchar Digit[5];
  9. int c;
#0qGwVU C++ 4.9.2 13 hours ago
Runtime error
  1.  
  2. #include <iostream>
  3. #include <cstring> // Needed for NULL
  4. using namespace std;
  5.  
  6.  
  7. class List
  8. {
  9. protected:
#uNHnIu C++ 4.9.2 13 hours ago
Runtime error
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. class Vector
  5. {
  6. public:
  7. Vector();
  8. Vector(int wsize);
  9. ~Vector() {delete[] tab;}
#8y6kHw C++ 4.9.2 13 hours ago
Time limit exceeded
  1. #include<bits/stdc++.h>
  2. #define pii pair<int,int>
  3. #define psi pair<string,int>
  4.  
  5. using namespace std;
  6. typedef long long ll;
  7. map< string, ll > M;
  8. map<pair<ll,ll> , ll> m;
  9. map<pair<ll,ll> , ll> :: iterator it1;
#6GpEDI C++ 4.9.2 13 hours ago
Time limit exceeded
  1. #include<bits/stdc++.h>
  2. #define pii pair<int,int>
  3. #define psi pair<string,int>
  4.  
  5. using namespace std;
  6. typedef long long ll;
  7. map< string, ll > M;
  8. map<pair<ll,ll> , ll> m;
  9. map<pair<ll,ll> , ll> :: iterator it1;
#gb9K64 C++ 4.9.2 13 hours ago
Compilation error
  1. #include <iostream>
  2. #include <fstream>
  3. #include <bitset>
  4. #include <vector>
  5. #include <algorithm>
  6. #include "tbb/tick_count.h"
  7. #include "tbb/task_scheduler_init.h"
  8. #include "tbb/spin_rw_mutex.h" //todo:??????????
  9. #include "tbb/task.h"
#SlghRD C++ 4.9.2 13 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6.  
  7.  
  8.  
  9.