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

Filter by: All Bash C C# C++ 5.1 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 C++ C++ 4.3.2 C99 strict CLIPS Clojure COBOL COBOL 85 CoffeeScript Common Lisp (clisp) D D D (dmd) Elixir Erlang F# Factor Falcon Fantom Forth Fortran Go Groovy Icon Intercal JavaScript (rhino) JavaScript (spidermonkey) Lua Nemerle Nice Nim Node.js Objective-C Ocaml Octave Oz Perl 6 PicoLisp Pike Prolog (gnu) Prolog (swi) Python (Pypy) R Rust Scala Scheme (chicken) Scheme (guile) Smalltalk Tcl Text Unlambda Whitespace

#xWcF6n C++14 13 seconds ago
Compilation error
  1. /*
  2.  * File: main.cpp
  3.  * Author: mg909
  4.  *
  5.  * Created on July 30, 2015, 10:59 AM
  6.  */
  7.  
  8. #include <cstdlib>
  9. #include <iostream>
#HzXgtA C++14 52 seconds ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. bool findutil(string &temp,map<string,int> &hash,const vector<string> &B,int start,int end)
  5. {
  6. int i=0,j=0;
  7. int len=B.size();
  8. int len1=B[0].size();
  9.  
#pWG1y2 C++14 1 minute 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:
#XPG5DI C++14 17 seconds ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. vector<vector<int> > graph(10,vector<int >());
  5. map<int,int> m;
  6.  
  7. int bfs(int k)
  8. {
  9. queue<pair<int,int> > q;
#vO1FQI C++14 1 minute ago
Compilation error
  1. /*
  2.  * File: main.cpp
  3.  * Author: mg909
  4.  *
  5.  * Created on July 30, 2015, 10:59 AM
  6.  */
  7.  
  8. #include <cstdlib>
  9. #include <iostream>
#N3kizy C++14 13 seconds ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. #include <stdlib.h>
  5. #include <string.h>
  6.  
  7. int main() {
  8. char input[100] = "1000100\n1000010\n1000001\n0100100\n010010\n0001001";
  9.  
#HyJi7Z C++14 1 minute ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
#i2bL1m C++14 2 minutes ago
Compilation error
  1. /*
  2.  * File: main.cpp
  3.  * Author: mg909
  4.  *
  5.  * Created on July 30, 2015, 10:59 AM
  6.  */
  7.  
  8. #include <cstdlib>
  9. #include <iostream
#Zj7wbk C++14 56 seconds ago
Runtime error
  1. #include <iostream>
  2. #include<stack>
  3. using namespace std;
  4. struct node
  5. {
  6. int data;
  7. struct node *left;
  8. struct node *right;
  9. };
#H3ljUQ C++14 2 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. cout<<"outttt!!!";
  7. }
#2YaWFr C++14 2 minutes ago
Compilation error
  1. /*
  2.  * File: main.cpp
  3.  * Author: mg909
  4.  *
  5.  * Created on July 30, 2015, 10:59 AM
  6.  */
  7.  
  8. #include <cstdlib>
  9. #include <iostream>
#U2LJcv C++14 4 minutes ago
Compilation error
  1. /*
  2.  * File: main.cpp
  3.  * Author: mg909
  4.  *
  5.  * Created on July 30, 2015, 10:59 AM
  6.  */
  7.  
  8. #include <cstdlib>
  9. #include <iostream
#5Qg2mf C++14 4 minutes ago
Success
  1. #include <iostream>
  2. #include <vector>
  3. #include <string>
  4. #include <sstream>
  5.  
  6. using namespace std;
  7.  
  8. void print(vector<vector<string> > v)
  9. {
#eM6c5X C++14 3 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. enum type: bool{
  5.  
  6. a = 1,
  7. b = 0
  8.  
  9. };
#N9kl5n C++14 6 minutes ago
Compilation error
  1. #include<iostream>
  2. void main()
  3. {
  4. cout<<"sdjkfgisf";
  5. }
#inGPb3 C++14 6 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. cout<<"fuck you"<<endl;
  7. return 0;
  8. }
#w1GNOt C++14 1 minute ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include<iostream>
  4. using namespace std;
  5.  
  6.  
  7.  
  8. /* A tree node structure */
  9. struct node
#RGYJps C++14 3 minutes ago
Success
  1. #include <iostream>
  2. #include <thread>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. auto func = [](std::string input)
  8. {
  9. cout << input << ", from " << __FUNCTION__ << endl;
#Bv66WF C++14 8 minutes ago
Compilation error
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. #define ARRAY_SIZE(arr) sizeof(arr)/sizeof(arr[0])
  5.  
  6. /* just add elements to test */
  7. /* NOTE: A sorted array results in skewed tree */
  8. int ele[] = { 20, 8, 22, 4, 12, 10, 14 };
#Q0SQIP C++14 10 minutes ago
Runtime error
  1. //*
  2. #include <stdio.h>
  3. #include <algorithm>
  4. #pragma warning(disable:4996)
  5. using namespace std;
  6.  
  7. #define N 110
  8.  
  9. int n,d;
#6rKici C++14 12 minutes ago
Compilation error
  1. /*
  2.  * File: main.cpp
  3.  * Author: mg909
  4.  *
  5.  * Created on July 30, 2015, 10:59 AM
  6.  */
  7.  
  8. #include <cstdlib>
  9. #include <iostream
#QMl4qb C++14 13 minutes ago
Compilation error
  1. /*
  2.  * File: main.cpp
  3.  * Author: mg909
  4.  *
  5.  * Created on July 30, 2015, 10:59 AM
  6.  */
  7.  
  8. #include <cstdlib>
  9. #include <iostream>
#DoJ4ls C++14 14 minutes ago
Compilation error
  1. /*
  2.  * File: main.cpp
  3.  * Author: mg909
  4.  *
  5.  * Created on July 30, 2015, 10:59 AM
  6.  */
  7.  
  8. #include <cstdlib>
  9. #include <iostream>
#yYXEi1 C++14 16 minutes ago
Success
  1. int main(int argc, char* argv[])
  2. {
  3. return 0;
  4. }
#KvdVPr C++14 15 minutes ago
Success
  1. #include <iostream>
  2.  
  3. struct A {
  4. ~A() noexcept(false) {
  5. throw 1;
  6. }
  7. };
  8.  
  9. int main() {
#ixbHuj C++14 17 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a[4] = {1, 4, 7, 8}, sum[100] = {0}, check[101] = {0}, i;
  6. int k, counter, count = 1;
  7. sum[0] = a[0];
  8. for (i = 1; i < 4; i++)
  9. {
#OGOjWU C++14 3 minutes ago
Success
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4.  
  5. using namespace std;
  6.  
  7.  
  8. vector<string> explode(const string &delimiter, const string &str)
  9. {
#OwSQaX C++14 17 minutes ago
Success
  1. #include <iostream>
  2. #include <boost/lexical_cast.hpp>
  3. using namespace std;
  4.  
  5. int main() {
  6. string a("255");
  7. cout << boost::lexical_cast<int>(a) << endl;
  8. return 0;
  9. }
#pxORp2 C++14 18 minutes ago
Compilation error
  1. #include <vector>
  2. #include <iostream>
  3. #include <iomanip>
  4. #include <string>
  5. #include <time.h>
  6.  
  7. using namespace std;
  8.  
#HVrQRP C++14 17 minutes ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define MOD 1000000007
  4. #define ULL unsigned long long
  5. void mul(ULL a[][2] , ULL b[][2])
  6. {
  7. ULL res[2][2];
  8. memset(res , 0 , sizeof res);
  9. for(int i = 0 ; i < 2 ; i ++)