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

#eXKxn1 C++11 1 minute ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. bool possible(true);
  6. int n, x, a, b;
  7. cin >> n >> x;
  8. while (n--)
  9. {
#FZUHDY C++11 5 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct A {
  5. int a1;
  6. int a2;
  7. };
  8. int main() {
  9. A *a;
#jBBR7y C++11 5 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct A {
  5. int a1;
  6. int a2;
  7. };
  8. int main() {
  9. A *a;
#54uBqq C++11 6 minutes ago
Runtime error
  1. //a program that encrypts english to pig latin
  2.  
  3. #include <iostream>
  4. #include <string>
  5. using namespace std;
  6.  
  7. bool is_vowel(char letter){
  8.  
  9. if ((letter == 'a') || (letter == 'e') || (letter == 'i') || (letter == 'o') || (letter == 'u') || (letter == 'y'))
#fgYur6 C++11 4 seconds ago
Compilation
  1. /*
  2.  * Bidhan Roy
  3.  * University of Dhaka
  4.  */
  5.  
  6. using namespace std;
  7.  
  8. #include <algorithm>
  9. #include <bitset>
#mI7eg9 C++11 7 minutes ago
Success
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. #include <array>
  5. #include <type_traits>
  6.  
  7. template<typename T>
  8. struct is_container
  9. {
#0JwF3G C++11 10 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a = 1;
  6. int b = 3;
  7.  
  8. a += b + a++;
  9. b = ++a;
#n9W4fg C++11 11 minutes ago
Success
  1. #include <iostream>
  2. #include <sstream>
  3.  
  4. using namespace std;
  5.  
  6. int main ()
  7. {
  8. int LiczbaPrzypadkow;
#A5gwP8 C++11 7 minutes ago
Runtime error
  1. #include <iostream>
  2. #include <vector>
  3. #include <sstream>
  4. #include <algorithm>
  5. #include <cmath>
  6. using namespace std;
  7.  
  8. /*****************************************************************************************
  9.  // DevDraft 2014 Brian Ackermann Submission 2.0
#9DSfUQ C++11 7 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i=0;
  6. int j=0;
  7. for(j=0; j<2;j++)
  8. {
  9. for(i=0; i<5; i++)
#lfWWT2 C++11 4 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, remain;
  6. cin >> a;
  7. while (a>0)
  8. {
  9. remain=a%10;
#F30eNv C++11 12 minutes ago
Success
  1. //Week3.cpp
  2. //Sandy Div
  3.  
  4. #include <iostream>
  5. using namespace std;
  6.  
  7. int main() {
  8.  
  9. float fahrenheit, celsius;
#reYtXz C++11 11 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c;
  6. cin >> a, b, c>>;
  7. if (a % 6 == 0){
  8. cout << "Es multiplo de 6";{
  9. if (b % 6 == 0){
#zQk9k8 C++11 14 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. class yell {
  4. public:
  5. void display() {
  6. cout << "yell" << endl;
  7. }
  8. };
#uSIEZu C++11 14 minutes ago
Runtime error
  1. #include <cstdio>
  2. #include <iostream>
  3. #include <cstdlib>
  4. #include <algorithm>
  5. #include <cstring>
  6. #include <vector>
  7. #include <stack>
  8. #include <queue>
  9. #include <cstdlib>
#9mCoOv C++11 15 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct A {
  5. int a1;
  6. int a2;
  7. };
  8. int main() {
  9. A *a;
#Hvpuh7 C++11 16 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. float fahrenheit, celsius;
  7.  
  8. float beach = 80;
  9. float hiking1 = 65 ,hiking2 = 70;
#jqn79b C++11 18 minutes ago
Success
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. int main() {
  5. float t;
  6. std::cin >> t;
  7. std::cout << std::fixed << std::setprecision(4) << t*9/5+32;
  8. return 0;
  9. }
#XfidVf C++11 16 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b;
  6. cin >> a >> b;
  7. b=a%10;
  8. cout << b;
#QqWaqn C++11 17 minutes ago
Compilation error
  1. #include <stdio.h>
  2. #include <signal.h>
  3. #include <unistd.h>
  4. #include <string.h>
  5.  
  6. #define MAX_LINE 80
  7. #define HISTORY_SIZE 10
  8. #define BUFFER_SIZE 50
#Cz6Z7P C++11 10 minutes ago
Runtime error
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. // A utility function to get maximum of two integers
  5. int max(int l, int r) { return (l > r ? l : r); }
  6.  
  7. // A Binary Tree Node
  8. struct Node
  9. {
#dOLFZA C++11 18 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void f(double * x, int n)
  5. {
  6. for(int i =0;i<n;i++)
  7. {
  8. cout << x[i] << ", ";
  9. }
#OwQG0S C++11 16 minutes ago
Success
  1. /*
  2. Written by Kevin Bacon (haxifix@gmail.com)
  3. Written on September 30, 2014
  4. Not best code, wrote it really quick. Will add updated code using more C++11 features soon!
  5. */
  6.  
  7. #include <iostream>
  8. #include <vector>
  9. #include <algorithm>
#B9iSEo C++11 5 minutes ago
Success
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. string A, B, current;
  7. cin >> current;
  8. cout << "current: " << current << endl;
  9. A = current;
#JjPqCB C++11 22 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
#qbFprW C++11 23 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double salary_per_hour = 25;
  6. double salary = 0;
  7. double hours = 40.0;
  8.  
  9. for (int anniversary = 0; anniversary < 2; anniversary++) {
#p0lLRs C++11 23 minutes ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7. int LiczbaPrzypadkow;
  8.  
  9. int LiczbaUczniowPierwszych;
#BKLfSv C++11 25 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double monthly_rent = 0.0;
  6. double annual_rent = 0.0;
  7.  
  8. cout << "Enter the monthly rental cost" << endl;
  9. cin >> monthly_rent;
#rzpSDi C++11 25 minutes ago
Compilation error
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7. int LiczbaPrzypadkow;
  8.  
  9. int LiczbaUczniowPierwszych;
#5cbRnR C++11 28 minutes ago
Success
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. int main() {
  5. double t,wynik;
  6. std::cin >> t;
  7. wynik = t*9/5+32;
  8. std::cout << std::fixed << std::setprecision(4) << wynik;
  9. return 0;