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

#THcHdv C++11 1 minute ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3. void LevelOrderTraverse(node * root)
  4. {
  5. if(root == NULL)
  6. return;
  7. queue<node*> qTree ;
  8. qTree.push(root);
#zadfbQ C++11 1 minute ago
Compilation error
  1. #include <iostream>
  2. #include <map>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. map<int,string> words = {{1,"geeks"},{2,"seek"},{3,"kite"},{4,"eleag"}};
  8. map<char,int> occur;
  9. for(int i=1;i<=4;i++)
#fsCEyl C++11 4 minutes ago
Runtime error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. for(int i=0;i<100000;i++)
  7. cout<<i<<endl;
  8.  
  9. return 0;
#hKiMLn C++11 2 minutes ago
Compilation error
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. #include <string>
  5. #include<stdlib.h>
  6. #include<string.h>
  7. #include<sstream>
  8.  
#dd06ax C++11 5 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. for(int i=0;i<1000;i++)
  7. {
  8. int b;
  9. b=11*i-1;
#VvBczw C++11 6 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout<< ciao<< endl // your code goes here
  6. return 0;
  7. }
#vH56lq C++11 5 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int truc() {
  5. return 1;
  6. }
  7.  
  8. int main() {
  9. int test = 0;
#4sUOPy C++11 8 minutes ago
Compilation error
  1. // ConsoleApplication4.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6.  
  7. using namespace std;
  8.  
  9. int main()
#D1d9o5 C++11 8 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. cout<<"test"<<endl;
  7. return 0;
  8. }
#rDtT13 C++11 9 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. const string s = "example";
  6. for (auto &e: s)
  7. e = 'X';
  8. return 0;
  9. }
#SRnIaG C++11 9 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. const string s = "example";
  6. for (auto &c: s) { }
  7. }
#D6Ia9r C++11 9 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. unsigned int i=0;
  6. unsigned long l=0;
  7. cout << --i << endl;
  8. cout << --l << endl;
  9. // your code goes here
#MqEj6Y C++11 25 seconds ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class base{
  5. public:
  6. int b;
  7. void Print_b(){
  8. cout<<b<<endl;
  9. }
#4m637W C++11 6 minutes ago
Success
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. auto k = 31;
  7. auto j = ceil(log(k)/log(2));
  8. cout << j;
  9. return 0;
#jXLoa2 C++11 13 minutes ago
Runtime error
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. class Test
  5. {
  6. private:
  7. int x;
  8. int y;
  9. public:
#lRi9I0 C++11 2 minutes ago
Runtime error
  1. #include <iostream>
  2. #include <thread>
  3. #include <vector>
  4.  
  5. int main() {
  6. std::cout << "Hello" << std::endl;
  7. int n = 0;
  8. std::cin >> n;
  9. std::vector<std::thread> threads;
#epmkH7 C++11 46 seconds ago
Success
  1. #include<iostream>
  2. #define N 1001
  3. int top=-1;
  4. long long int s[N];
  5. void MergeSort(long long int arr[],long long int low,long long int mid,long long int high){
  6. long long int i,m,k,l,temp[1000];
  7. l=low;
  8. i=low;
  9. m=mid+1;
#QWvZF7 C++11 14 minutes ago
Success
  1. #include<iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6. char napis[20] = "cafffacbbffffcbcf";
  7. int i, j, xn = 0, yn = 0;
  8. char x, y;
#myKmT6 C++11 15 minutes ago
Success
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. class Test
  5. {
  6. private:
  7. int x;
  8. int y;
  9. public:
#ny2I9Q C++11 16 minutes ago
Runtime error
  1. #include <iostream>
  2. #include <string>
  3. #include <thread>
  4. #include <mutex>
  5.  
  6. thread_local unsigned int rage = 1;
  7. std::mutex cout_mutex;
  8.  
  9. void increase_rage(const std::string& thread_name)
#uAm7gv C++11 17 minutes ago
Success
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4.  
  5. int main(void)
  6. {
  7. int x,min,max,count=0,i,sum;
  8.  
  9. printf("Enter temperature data. To end sequence enter: -9999.\n\n");
#We339o C++11 20 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char namn[20];
  6.  
  7. cout << "Skriv ditt namn" << endl;
  8. cin >> namn;
  9. cout << "Hej " << namn << endl;
#CrlMt5 C++11 3 minutes ago
Success
  1. #include <iostream>
  2. #include <iterator>
  3. #include <stdexcept>
  4. #include <vector>
  5.  
  6. template <typename T>
  7. void print(const std::vector<T>& arr) {
  8. copy(arr.begin(), arr.end(), std::ostream_iterator<T>(std::cout, ", "));
  9. std::cout << std::endl;
#w3QvWJ C++11 16 minutes ago
Success
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. class Test
  5. {
  6. private:
  7. int x;
  8. int y;
  9. public:
#6zuV7D C++11 22 minutes ago
Success
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. class Test
  5. {
  6. private:
  7. int x;
  8. public:
  9. Test(int x = 0) { this->x = x; }
#7hO7AT C++11 22 minutes ago
Success
  1. #include <stdio.h>
  2. #include <iostream>
  3. #include <queue>
  4. #include <vector>
  5. #include <map>
  6. #include <set>
  7. #include <stdio.h>
  8. #include <math.h>
#7sdwwN C++11 7 minutes ago
Success
  1.  
  2. #include <iostream>
  3.  
  4. class Point
  5. {
  6. int x;
  7. int y;
  8. private:
  9. friend double Distance(const Point& p1,const Point& p2);
#8d3sCn C++11 26 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int foo()
  5. {
  6. cout<<"function foo is called";
  7. return 2;
  8. }
  9.  
#2Q4eSB C++11 31 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout << "Podaj dl. bokow trojkata:\n";
  6. float a, b, c;
  7. cout << "a = ";
  8. cin >> a;
  9. cout << "b = ";
#BIZp32 C++11 32 minutes ago
Compilation error
  1.  
  2. #include <iostream>
  3. #include <math.h>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. float x, y, a=-2, b=2, h=0.2;
  9. //cout<<"Enter left and right limits (a and b) of the interval and step value (h) separated by space:\n";