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

Filter by: All Bash C C# C++ 4.9.2 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++ 4.3.2 C99 strict CLIPS Clojure COBOL COBOL 85 Common Lisp (clisp) D 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) Python (Pypy) R Scala Scheme (chicken) Scheme (guile) Smalltalk Tcl Text Unlambda Whitespace

#bZ6zRR C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. #define infinity 999
  4. int numN;
  5. int cost[15][15];
  6. int pred[15];
  7. int d[15];
  8.  
  9. void init(int source){
#HLVBFL C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <stdlib.h>
  4.  
  5. using namespace std;
  6.  
  7. struct node
  8. {
  9. int data;
#Dr9ULv C++ 4.9.2 4 hours ago
Success
  1. #include<stdio.h>
  2. #include<math.h>
  3. #define ll long long int
  4. int main()
  5. {
  6. int t;
  7. scanf("%d",&t);
  8. while(t--)
  9. {
#D00Mc3 C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. double power(double x, int n)
  5. {
  6. // key is to avoid re-calculating something you’ve done.
  7. if(n==0)
  8. return double(1);
  9. else if(n<0)
#Fu6ElA C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. #include <stdexcept>
  3. using namespace std;
  4.  
  5.  
  6. struct Celula{
  7. int el;
  8. Celula *prox;
  9. };
#pNx6ZK C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. class base {
  4. public :
  5. base(int i){ cout<<"bc,";}
  6. virtual ~base(){ cout<<"bd,";}
  7. };
  8. class derived :public base{
  9. public :
#fNlLGT C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
#jXQoos C++ 4.9.2 5 hours ago
Runtime error
  1. #include <iostream>
  2. #include <stack>
  3. #include <cstdlib>
  4. #include <cctype>
  5. #include <queue>
  6. #include <cassert>
  7. #include <fstream>
  8. #define MAXN 1000000
  9. #define PARENTHESIS 2
#xwAxwo C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. unsigned long int k = 0xffffffff;
  8. cout<<(int) * (int*) &k<<endl;
  9. printf("%x\n",(int) * (int*) &k);
#hI9u9B C++ 4.9.2 5 hours ago
Compilation error
  1. #include<iostream>
  2. #include<queue>
  3. #include<vector>
  4.  
  5. using namespace std;
  6.  
  7. int A[30][30];
  8.  
  9. void BFS(int N, int s) {
#LyVltm C++ 4.9.2 5 hours ago
Compilation error
  1. #include <stdio.h>
  2. #include <timath.h>
  3. #include <string.h>
  4. #include <kbd.h>
  5.  
  6. int _ti89, _ti92plus;
  7.  
  8. void _main (void)
  9. {
#orynaa C++ 4.9.2 5 hours ago
Success
  1. #include<bits/stdc++.h>
  2. #include <iostream>
  3. using namespace std;
  4. int main() {
  5. int n;
  6. cin>>n;
  7. if(n<=4)
  8. {
  9. if(n==1||n==2)
#gu1hw7 C++ 4.9.2 5 hours ago
Success
  1. #include <iostream>
  2. #include <stack>
  3. #include <cstdlib>
  4. #include <cctype>
  5. #include <queue>
  6. #include <cassert>
  7. #include <fstream>
  8. #define MAXN 1000000
  9. #define PARENTHESIS 2
#spe0RS C++ 4.9.2 3 hours ago
Success
  1. #include <iostream>
  2. #include <vector>
  3. #include <cstdio>
  4. #include <stdlib.h>
  5. using namespace std;
  6.  
  7. struct node
  8. {
  9. int data;
#kMxIy6 C++ 4.9.2 4 hours ago
Success
  1. #include<stdio.h>
  2. #include<math.h>
  3. #define ll long long int
  4. int main()
  5. {
  6. int t;
  7. scanf("%d",&t);
  8. while(t--)
  9. {
#8rMceJ C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. #include <cstring>
  3. #include <cstdlib>
  4. #include <cstdio>
  5. using namespace std;
  6.  
  7. int func(char *s1, char *s2) {
  8. int i;
  9. int l1 = strlen(s1);
#J2R2kt C++ 4.9.2 5 hours ago
Success
  1. #include <iostream>
  2. #include <stack>
  3. #include <math.h>
  4. #include <cstdlib>
  5. #include <cctype>
  6. #include <queue>
  7. #include <cassert>
  8. #include <iomanip>
  9. #include <fstream>
#WSQODU C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <string.h>
  4. #define MAX_LEN 100
  5. using namespace std;
  6.  
  7. int main() {
  8. char word[MAX_LEN];
  9. cin>>word;
#ReDmYE C++ 4.9.2 5 hours ago
Compilation error
  1. #include<iostream>
  2.  
  3. #include<queue>
  4.  
  5. #include<vector>
  6.  
  7.  
  8.  
  9. using namespace std;
#LeVwiB C++ 4.9.2 5 hours ago
Compilation error
  1. #include<iostream>
  2.  
  3. #include<queue>
  4.  
  5. #include<vector>
  6.  
  7.  
  8.  
  9. using namespace std;
#CWYG6w C++ 4.9.2 5 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. _asm
  6. (
  7. section .text
  8. GLOBAL timestamp
  9. timestamp:
#keDXWH C++ 4.9.2 5 hours ago
Compilation error
  1. #include<iostream>
  2.  
  3. #include<queue>
  4.  
  5. #include<vector>
  6.  
  7.  
  8.  
  9. using namespace std;
#gZNc0X C++ 4.9.2 5 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. _asm
  6. (
  7. GLOBAL timestamp
  8. timestamp:
  9. RDTSC
#Xc5yF2 C++ 4.9.2 5 hours ago
Success
  1. #include <iostream>
  2. #include <string>
  3. #include <cstring>
  4. #include <ctype.h>
  5. using namespace std;
  6.  
  7. int main() {
  8. string x = ".256";
  9. cout<< x;
#MP3r01 C++ 4.9.2 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6.  
  7. int num=0, sum=0;
  8.  
  9. cin>>num;
#1f0H7W C++ 4.9.2 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. #define infinity 999
  4. int numN;
  5. int cost[15][15];
  6. int pred[15];
  7. int d[15];
  8.  
  9. void init(int source){
#mbxntC C++ 4.9.2 5 hours ago
Success
  1. #include <iostream>
  2. #include <cstdio>
  3. using namespace std;
  4.  
  5. int a,b,gift[100005],temp;
  6.  
  7. int main () {
  8. scanf ("%d %d", &a, &b);
  9. for (int i=1; i<=a; i++) {
#8Nf9bq C++ 4.9.2 5 hours ago
Success
  1. #include <iostream>
  2. #include <string.h>
  3. #include <stdio.h>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. char *str;
  9. str=new char[105];
#zGuOFw C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. #include<stdio.h>
  4.  
  5.  
  6. int main() {
  7. // your code goes here
  8. int t,i,j;
  9. cin>>t;
#mgZl46 C++ 4.9.2 5 hours ago
Success
  1. #include <iostream>
  2. #include <exception>
  3. class myexception: public std::exception
  4. {
  5. virtual const char* what() const throw()
  6. {
  7. return "My exception happened";
  8. }
  9. } myex;