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

#gENiTQ C++11 42 seconds ago
Success
  1. #include <array>
  2. #include <cstdlib>
  3.  
  4. namespace sehn {
  5. template <typename T, std::size_t N>
  6. using matrix = std::array<std::array<T, N>, N>;
  7.  
  8. template <typename T, std::size_t N>
  9. matrix<T, N> flipud (matrix<T, N> const &);
#vhomyh C++11 38 seconds ago
Compilation error
  1. #include <iostream>
  2. #include <queue>
  3.  
  4. using namespace std;
  5.  
  6. class Comparator {
  7. public:
  8. bool operator()(int lhs, int rhs) {
  9. return lhs < rhs;
#cPIPDF C++11 1 minute ago
Success
  1. #include <array>
  2. #include <cstdlib>
  3.  
  4. namespace sehn {
  5. template <typename T, std::size_t N>
  6. using matrix = std::array<std::array<T, N>, N>;
  7.  
  8. template <typename T, std::size_t N>
  9. matrix<T, N> flipud (matrix<T, N> const &);
#kfddVK C++11 4 minutes ago
Success
  1. #include <iostream>
  2. #include "math.h"
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. double h=0.01, A=-2.5/(h*h),B=-2.5/(h*h), F, P=3.14, C;
  9. int N=1/h;
#KLiwiL C++11 9 minutes ago
Success
  1. #include <array>
  2. #include <cstdlib>
  3.  
  4. namespace sehn {
  5. template <typename T, std::size_t N>
  6. using matrix = std::array<std::array<T, N>, N>;
  7.  
  8. template <typename T, std::size_t N>
  9. matrix<T, N> flipud (matrix<T, N> const &);
#r5fPhc C++11 12 minutes ago
Success
  1. #include <array>
  2. #include <iostream>
  3.  
  4. int main()
  5. {
  6. std::array<int,4> numbers {2, 4, 6, 8};
  7.  
  8. std::cout << "Second element: " << numbers[1] << '\n';
  9.  
#0azGik C++11 12 minutes ago
Success
  1. #include <iostream>
  2. #include <utility>
  3.  
  4. template<typename Deleter>
  5. class ScopeGuard
  6. {
  7. private:
  8. bool active_;
  9. Deleter deleter_;
#dIeM1S C++11 5 minutes ago
Success
  1. #include <array>
  2. #include <chrono>
  3. #include <iostream>
  4. #include <random>
  5. #include <algorithm>
  6. #include <iterator>
  7. #include <iostream>
  8.  
  9. using namespace std;
#t5kvF9 C++11 15 minutes ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. string PIN;
  6.  
  7. int main()
  8. {
  9. cout << "Witaj w naszym banku" << endl;
#H3KNfy C++11 13 minutes ago
Success
  1. #include <iostream>
  2. #include <stack>
  3. using namespace std;
  4.  
  5. struct TreeNode {
  6. int val;
  7. TreeNode *left;
  8. TreeNode *right;
  9. TreeNode(int x) : val(x), left(NULL), right(NULL) {}
#dct54r C++11 2 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Node {
  5. int x;
  6. Node* next;
  7. };
  8.  
  9. int main() {
#LrAOAu C++11 16 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
#5qJBxg C++11 16 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout <<"hello!"<<;
  6. // your code goes here
  7. return 0;
  8. }
#v5WIXB C++11 5 minutes ago
Success
  1. #include <iostream>
  2. #include <math.h>
  3. #include <cctype>
  4.  
  5. using namespace std;
  6.  
  7. unsigned long long conversions[1000000] = {0};
  8.  
  9. unsigned long long convert_to_currency(unsigned long long coins)
#3sn6TI C++11 18 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <math.h>
  3. #include <cctype>
  4.  
  5. using namespace std;
  6.  
  7. unsigned long long conversions[1000000000] = {0};
  8.  
  9. unsigned long long12
#iAELvc C++11 19 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int a;
  7. scanf("%d", &a);
  8. printf("%d\n", a+a);
  9. }
#xsYFrq C++11 10 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. class base {
  4. private: int x;
  5. public:
  6. base(int xx){
  7. x = xx;
  8. }
  9. int getX(){
#0oOT8G C++11 17 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int noOfRows;
  7. cout<<"";
  8. cin>>noOfRows;
  9. cout <<'\n';
#55kEQo C++11 21 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. auto func = [] () {
  6. int intNum = 0;
  7. cin >> intNum;
  8. while (intNum != 42) {
  9. cout << intNum << "\n";
#bkkhn4 C++11 17 minutes ago
Runtime error
  1. #include <iostream>
  2.  
  3. class HashMap {
  4. int c;
  5. int s;
  6. struct Node {
  7. char x;
  8. Node* next;
  9. };
#P3s9cV C++11 22 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int a;
  7. scanf("%d", &a);
  8. printf("%d\n", a+a);
  9. }
#X8F8rZ C++11 7 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. //print numbers from num to 10
  6. int num;
  7. cout<< "Enter a number:" << endl;
  8. cin>>num;
  9. while (num<=10) {
#lDzXlq C++11 26 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // These are my varible declarations
  6. int num1, num2, sum, procuct, difference;
  7. string name, fname, mname;
  8.  
  9. // Get names from the user by first prompting the user to enter the name
#Czokgr C++11 28 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. / This is my header / include section
  7. #include<iostream>
  8. #include<string>
#QBpiPG C++11 28 minutes ago
Compilation error
  1. / This is my header / include section
  2. #include<iostream>
  3. #include<string>
  4.  
  5. using namespace std;
  6.  
  7.  
  8. void main()
  9. {
#GUtWSh C++11 29 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. //freopen("input.txt", "r", stdin);
  6. //freopen("output.txt", "w", stdout);
  7.  
  8.  
  9. int N,a,i,M;
#3dHG2j C++11 32 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. freopen("input.txt", "r", stdin);
  6. freopen("output.txt", "w", stdout);
  7.  
  8.  
  9. int N,a,i,M;
#daMROh C++11 33 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout<<"hola";
  6. return 0;
  7. }
#GGygwT C++11 35 minutes ago
Success
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. #define fpos slkflsl
  6.  
  7. const int maxn = 2e6;
  8. int len[maxn], link[maxn], used[maxn], fpos[maxn];
  9. char ch[maxn];
#ly5c9B C++11 35 minutes ago
Compilation error
  1. #include <iostream>
  2.  
  3. int main(void)
  4. {
  5. cout << "Hello World" << endl;
  6. return 0;
  7. }