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

#Qm7On3 C++ 4.8.1 13 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {unsigned int a,k,x;
  5. a=0;k=0;
  6. do{cin>>x;
  7. while(x>99)
  8. x=x/10;
  9. if(x>9)
#l6r7BF C++ 4.8.1 13 hours ago
Success
  1. //Gorgin Fazli
  2. //April 17th, 2014
  3. //Loop exercise
  4. //Loops
  5.  
  6.  
  7. #include <iostream>
  8. using namespace std;
#KiERKJ C++ 4.8.1 13 hours ago
Compilation error
  1. #include ‬<stdio.h>
  2. int main()
  3. {
  4. int i;
  5. for (i = 0; i < 10; i++)
  6. {
  7. printf ("Hello\n");
  8. printf ("World\n");
  9. }
#qxFPgx C++ 4.8.1 13 hours ago
Compilation error
  1. #include<iostream>
  2. #include<string>
  3. #include<map>
  4. #include<algorithm>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int x, y;
#k2K3BS C++ 4.8.1 13 hours ago
Compilation error
  1. #include<iostream>
  2. #include<string>
  3. #include<map>
  4. #include<algorithm>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int x, y;
#MMwyPF C++ 4.8.1 13 hours ago
Compilation error
  1. #include<iostream>
  2. #include<string>
  3. #include<map>
  4. #include<algorithm>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int x, y;
#I4a3r0 C++ 4.8.1 13 hours ago
Compilation error
  1.  
  2.  
  3.  
  4.  
  5.  
  6. #include <iostream>
  7. #include <cstdio>
  8. #include <set>
  9. #include <map>
#Txgn0j C++ 4.8.1 13 hours ago
Success
  1. #include <iostream>
  2. #include <string>
  3. #include <cstring>
  4. using namespace std;
  5.  
  6. int main() {
  7. char test1[] = "Test123456";
  8. char * test2 = test1 + 4;
  9. char test3[10];
#bVHiik C++ 4.8.1 13 hours ago
Compilation error
  1. #include<iostream>
  2. #include<string>
  3. #include<map>
  4. #include<algorithm>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int x, y;
#joTDge C++ 4.8.1 13 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. __int128 x;
  5.  
  6. int main() {
  7. // your code goes here
  8. cin >> x;
  9. cout << x << endl;
#w3Eida C++ 4.8.1 13 hours ago
Success
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int hours, hour, minutes, minute ;
  9. cout << "Input the time as hours and minutes:" << endl;
#CfHkZC C++ 4.8.1 13 hours ago
Compilation error
  1. #include<iostream>
  2. #include<string>
  3. #include<map>
  4. #include<algorithm>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int x, y;
#lTSFM6 C++ 4.8.1 13 hours ago
Compilation error
  1. // April 14, 2014
  2. // Antoine Pritchard
  3. // Changes made.
  4.  
  5.  
  6. // Assignment 22 - Add the required calls to the findHighest() and getSales()
  7. // where indicated with //*** comments below.
  8.  
  9. // Chapter 6, Programming Challenge 3: Winning Division
#63JD8g C++ 4.8.1 13 hours ago
Compilation error
  1. #include<iostream>
  2. #include<string>
  3. #include<map>
  4. #include<algorithm>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int x, y;
#zax3sN C++ 4.8.1 13 hours ago
Success
  1. #include <iostream>
  2. #include<set>
  3. using namespace std;
  4. int main() {
  5. set<int> a;
  6. long long l;
  7. for(int i=0;i<4;i++)
  8. {cin>>l;
  9. a.insert(l);
#ChIxXS C++ 4.8.1 13 hours ago
Runtime error
  1. #include <cstdio>
  2. #include <cstring>
  3. #include <iostream>
  4. #include <algorithm>
  5. using namespace std;
  6. typedef long long LL;
  7. const int SIZE = 1000100;
  8. LL prime[SIZE], fi[SIZE], mnprime[SIZE], g[SIZE], mx[SIZE];
  9. int N, tot;
#XsiDQu C++ 4.8.1 13 hours ago
Compilation error
  1. #include<iostream>
  2. #include<string>
  3. #include<algorithm>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int x, y;
  9. string st;
#a4dnzT C++ 4.8.1 13 hours ago
Success
  1. #include<iostream>
  2. #include<stdio.h>
  3. #define MAX_NUM 1000001
  4. int primes[MAX_NUM];
  5. int nfactor[15][1000010];
  6.  
  7. void gen_sieve_primes(void)
  8. {
  9. primes[2]=1;
#TuNkIq C++ 4.8.1 13 hours ago
Compilation error
  1. #include<iostream>
  2. #include<string>
  3. #include <map>
  4. #include<algorithm>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int x, y;
#vuV0IX C++ 4.8.1 13 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5. int n = 110;
  6. bool data[n], res[n];
  7. int i, j;
  8. for(i=0;i!=n;++i) data[i]=true;
#zdguue C++ 4.8.1 13 hours ago
Success
  1. #include <stdio.h>
  2. #include <algorithm>
  3. using namespace std;
  4.  
  5. #define gc getchar_unlocked
  6. inline int getn(){
  7. int n=0, c=gc();
  8. while(c < '0' || c > '9') c = gc();
  9. while(c >= '0' && c <= '9')
#rpqE0P C++ 4.8.1 13 hours ago
Compilation error
  1. #include<iostream>
  2. #include<string>
  3. #include<algorithm>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int x, y;
  9. string st;
#hpKW8C C++ 4.8.1 13 hours ago
Success
  1. // bitset::to_string
  2. #include <iostream> // std::cout
  3. #include <string> // std::string
  4. #include <bitset>
  5. using namespace std;
  6. // std::bitset
  7.  
  8. int main ()
  9. {
#jiSZn2 C++ 4.8.1 13 hours ago
Compilation error
  1. // April 14, 2014
  2. // Antoine Pritchard
  3. // Changes made.
  4.  
  5.  
  6. // Assignment 22 - Add the required calls to the findHighest() and getSales()
  7. // where indicated with //*** comments below.
  8.  
  9. // Chapter 6, Programming Challenge 3: Winning Division
#WqB0of C++ 4.8.1 13 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n,a,suma=0;
  6. cin>>n;
  7. for(int i=0;i<n;i++)
  8. {
  9. cin>>a;
#bLyaAw C++ 4.8.1 13 hours ago
Success
  1. #include<iostream>
  2. #include<string>
  3. using namespace std;
  4.  
  5. int main(){
  6. int maxq=0;
  7. string s;
  8. getline(cin,s);
  9. for(int raz=1; raz<=1; ++raz){
#WmkFAV C++ 4.8.1 13 hours ago
Success
  1. #include <iostream> // std::cout
  2. #include <string> // std::string
  3. #include <cstddef> // std::size_t
  4. #include <bitset> // std::bitset
  5.  
  6. int main ()
  7. {
  8. std::bitset<5> foo (std::string("01011"));
#2yy842 C++ 4.8.1 13 hours ago
Success
  1. #include<stdio.h>
  2. #include<iostream>
  3. #include<vector>
  4. #include<stack>
  5. #include<set>
  6. #include<algorithm>
  7. using namespace std;
  8. #define gc getchar_unlocked
  9. int read_int() {
#69gM8S C++ 4.8.1 13 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout << std::hex << (char)54 << endl;
  6. return 0;
  7. }
#KKNld9 C++ 4.8.1 13 hours ago
Success
  1. #include <iostream>
  2. #include<cstring>
  3. using namespace std;
  4.  
  5. int main() {
  6. int a[26];
  7. for(int i=0;i<26;i++)
  8. {
  9. a[i]=0;