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

#rwjB0B C++11 54 seconds ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n1,n2,n3;
  6. cout << "Enter to integer\n";
  7. cin>>n1>>n2;
  8. if((n1>n2)
  9. cout<<"\n"<<n1+n2;
#ruqoII C++11 1 minute ago
Compilation error
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
#EN35WR C++11 1 minute ago
Success
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4. #include <iterator>
  5.  
  6. template <typename T>
  7. void FillContainer(T &container) {
  8. int i = 0;
  9. std::generate(std::begin(container),
#tkBw6v C++11 29 seconds ago
Compilation error
  1. #include <iostream>
  2. #include <string>
  3.  
  4. void testUrl(const std::string &url) {
  5. if (url.find_last_of("/id_") == std::string::npos) std::ccout << "Not found" << std::endl;
  6. else std::cerr << "Found" << std::endl;
  7. }
  8.  
  9. int main() {
#feecQj C++11 1 minute ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class test
  5. {
  6. public:
  7. int &foo() &
  8. {
  9. cout << "lvalue" << endl;
#1QbD5o C++11 3 minutes ago
Success
  1. #include <iostream>
  2. #include <cstdio>
  3. using namespace std;
  4.  
  5. int main() {
  6. int x,sum = 0;
  7. scanf("%d", &x);
  8. sum += x;
  9. int y;
#8JTPd6 C++11 4 minutes ago
Runtime error
  1. /*
  2. ** Simon Nguyen
  3. ** CSCI 180 - David Letscher
  4. ** October 31, 2014
  5. */
  6.  
  7. #include <iostream>
  8. #include <string>
  9. using namespace std;
#NurrlO C++11 6 minutes ago
Success
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4. #include <iterator>
  5.  
  6. template <typename T>
  7. void FillContainer(T &container) {
  8. int i = 0;
  9. std::generate(std::begin(container),
#LneSpR C++11 2 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class A {
  5. public:
  6. int foo;
  7. };
  8.  
  9. void update(A& bar) {
#SexrXp C++11 6 minutes ago
Success
  1.  
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main(int argc, char* argv[]) {
  7. string message;
  8.  
  9. return 0;
#JCqyOk C++11 19 seconds ago
Runtime error
  1. #include <iostream>
  2. #include <list>
  3. #include <stack>
  4. #include <map>
  5. #include <vector>
  6. #include <string>
  7.  
  8. using namespace std;
#6YUAUb C++11 8 minutes ago
Runtime error
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int c;
  9. string a;
#7uPGGk C++11 8 minutes ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. unsigned int n;
  8. float a, fSummand;
  9. cin>>a>>n;
#R7dLcK C++11 8 minutes ago
Runtime error
  1. #include <iostream>
  2. #include <list>
  3. #include <stack>
  4. #include <map>
  5. #include <vector>
  6.  
  7. using namespace std;
  8.  
  9. class Graph
#Fo5h4I C++11 7 minutes ago
Success
  1. #include <iostream>
  2. #include <limits>
  3. using namespace std;
  4.  
  5. int main() {
  6. double x = std::numeric_limits<double>::max();
  7. for (int i = 0; i < 10000; ++i) {
  8. std::cout << x << std::endl;
  9. x /= 2.0;
#NiV7xw C++11 9 minutes ago
Success
  1. #include <iostream>
  2. #include <cstring>
  3. #include <limits>
  4.  
  5. using namespace std;
  6.  
  7. void Split(int x, int& a, int& b, int& c, int& d)
  8. {
  9. d = x % 10; x /= 10;
#fxzYI9 C++11 9 minutes ago
Success
  1. #include <iostream>
  2. #include <list>
  3. #include <stack>
  4. #include <map>
  5. #include <vector>
  6.  
  7. using namespace std;
  8.  
  9. class Graph
#IfcWwN C++11 9 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout<<"kl";
  6. return 0;
  7. }
#C2m6A1 C++11 1 minute ago
Runtime error
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <math.h>
  5. unsigned char a[1000000];
  6. int main()
  7. {
  8. //freopen("input.txt", "r", stdin);
  9. //freopen("output.txt", "w", stdout);
#KAzTi6 C++11 11 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
#DUueVb C++11 11 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. cout<ยจ<"hello";
  7. return 0;
  8. }
#R0uMOL C++11 12 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout<<"Cao stvore"<<endl;
  6. return 0;
  7. }
#HyzDnF C++11 12 minutes ago
Success
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. int g = 0x70;
  5. int foo()
  6. {
  7. return g << 1;
  8. }
  9. int bar()
#Ms0sec C++11 12 minutes ago
Success
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <math.h>
  5. unsigned char a[1000000];
  6. int main()
  7. {
  8. //freopen("input.txt", "r", stdin);
  9. //freopen("output.txt", "w", stdout);
#ooXAN9 C++11 10 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int a = 15;
  7. int b = 20;
  8. int c = 0;
  9.  
#yaxzob C++11 13 minutes ago
Time limit exceeded
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int stL[100], stC[100], stM[100], d[100][100], n, i, j, k, v, valid, succ, sol;
  6. cin>>n>>stL[1]>>stC[1];
  7. for(i=1; i<=n; i++)
  8. for(j=1; j<=n; j++)
  9. cin>>d[i][j];
#rLHmGV C++11 14 minutes ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7. int i, j;
  8.  
  9. for(i=0; i<=4; i++) {
#DW0gpq C++11 12 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int foo(int *i) {
  5. i = 5;
  6. return i;
  7. }
  8.  
  9. int main() {
#VUJIVF C++11 15 minutes ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7. int i, j;
  8.  
  9. for(i=0; i<=4; i++) {
#E2g1dB C++11 15 minutes ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7. int i, j;
  8.  
  9. for(i=0; i<=4; i++) {