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

#HVpl36 C++ 4.8.1 14 hours ago
Success
  1. #include <cstdio>
  2. #include <iostream>
  3. #include <algorithm>
  4. #include <string>
  5. #include <vector>
  6. #include <cmath>
  7.  
  8. using namespace std;
#HICyl0 C++ 4.8.1 10 hours ago
Success
  1. #include <iostream>
  2. #include <map>
  3. using namespace std;
  4. map<int, int>A;
  5. int main() {
  6. int arr[] = {0, 1, -1, -2, 2, 2, -4, 0};//1-1 -2+2 2+2-4 0
  7. int n = sizeof(A)/sizeof(A[0]),ctr = 0, sum = 0;
  8. for(int i = 0 ; i < n ; i++)
  9. {
#cRagJH C++ 4.8.1 14 hours ago
Success
  1. #include <cstdio>
  2. #include <iostream>
  3. #include <algorithm>
  4. #include <string>
  5. #include <vector>
  6. #include <cmath>
  7.  
  8. using namespace std;
#xGdmro C++ 4.8.1 14 hours ago
Success
  1. #include <iostream>
  2. #include<math.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int j,z=5,n=2;
  8. double resultado=1,resultadofinal;
  9. for(j=1;j<=n;j++)
#VC1l9A C++ 4.8.1 14 hours ago
Runtime error
  1. #include <vector>
  2. #include <list>
  3. #include <map>
  4. #include <set>
  5. #include <deque>
  6. #include <stack>
  7. #include <bitset>
  8. #include <algorithm>
  9. #include <functional>
#86VLfQ C++ 4.8.1 14 hours ago
Success
  1. #include <cstdio>
  2. #include <iostream>
  3. #include <algorithm>
  4. #include <string>
  5. #include <vector>
  6. #include <cmath>
  7.  
  8. using namespace std;
#6GWpdv C++ 4.8.1 14 hours ago
Success
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. float x = 0;
  8. float y = 0;
  9.  
#TCPO1I C++ 4.8.1 14 hours ago
Success
  1. #include <iostream>
  2. #include<cstring>
  3. using namespace std;
  4.  
  5.  
  6.  
  7.  
  8. int main()
  9. {
#HAuK25 C++ 4.8.1 14 hours ago
Success
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int arr[10],i,sum=0,p,flag=0;
  6. for(i=0;i<10;i++)
  7. {cin>>arr[i];
  8. }
  9. for(i=0;i<10;i++)
#hOrJtZ C++ 4.8.1 14 hours ago
Success
  1. #include <cstdio>
  2. #include <iostream>
  3. #include <algorithm>
  4. #include <string>
  5. #include <vector>
  6. #include <cmath>
  7.  
  8. using namespace std;
#hfevuh C++ 4.8.1 14 hours ago
Success
  1. #include <cstdio>
  2. #include<algorithm>
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. int t,i,a[1000000];
  8. scanf("%d",&t);
  9. for(i=0;i<t;i++)
#YgrTfg C++ 4.8.1 14 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char a[5]="hell";
  7. cout<<a;
  8. return 0;
  9. }
#6Rk7at C++ 4.8.1 14 hours ago
Success
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int i,j,k,l,p=0,n,m,carry=0;
  6. char *f,*s;
  7. int *ans;
  8. cin>>n;
  9. cin>>m;
#gkLWeL C++ 4.8.1 14 hours ago
Success
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int arr[10],i,sum=0,p;
  6. for(i=0;i<10;i++)
  7. {cin>>arr[i];
  8. }
  9. for(i=0;i<10;i++)
#hltPBa C++ 4.8.1 14 hours ago
Success
  1. #include <cstdio>
  2. #include <iostream>
  3. #include <algorithm>
  4. #include <string>
  5. #include <vector>
  6. #include <cmath>
  7.  
  8. using namespace std;
#HQUcgo C++ 4.8.1 14 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6.  
  7. int i;
  8. for( i =0; i <=10; i++)
  9. { if (i==6)
#VPILrK C++ 4.8.1 14 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int t;
  6. cin>>t;
  7. while(t--)
  8. {
  9. int n;
#fR3AT1 C++ 4.8.1 13 hours ago
Success
  1. #include <iostream>
  2. #include <fstream>
  3.  
  4. using namespace std;
  5. int n,s,c,stato_corr,stato_attuale,sposta,car_letto;
  6.  
  7. int main() {
  8.  
  9. //freopen("input.txt", "r", stdin);
#Q0tJM6 C++ 4.8.1 15 hours ago
Success
  1. #include <cstdio>
  2. #include <iostream>
  3. #include <algorithm>
  4. #include <string>
  5. #include <vector>
  6. #include <cmath>
  7.  
  8. using namespace std;
#ryFXT7 C++ 4.8.1 15 hours ago
Success
  1. #include<bits/stdc++.h>
  2. #define scd(n) scanf("%d",&n)
  3. #define sclld(n) scanf("%lld",&n)
  4. #define scf(n) scanf("%f",&n)
  5. #define sclf(n) scanf("%lf",&n)
  6. #define scc(n) scanf("%c",&n)
  7. #define scs(n) scanf("%s",&n)
  8. #define prd(n) printf("%d\n",n)
  9. #define prlld(n) printf("%lld\n",n)
#Y7pvv7 C++ 4.8.1 14 hours ago
Success
  1. #include <iostream>
  2. #include <queue>
  3. using namespace std;
  4. int a=0,b=0,d[65537];
  5. queue<int> h;
  6. int main()
  7. {
  8. char x;
  9. for(int i=15;i>=0;i--)
#R1u4Yf C++ 4.8.1 14 hours ago
Success
  1. #include <iostream>
  2. #include<string>
  3. using namespace std;
  4. #define MOD 1000000007
  5. int main() {
  6. int t,p=0;
  7. cin>>t;
  8. string s;
  9. while(t--)
#yE29iR C++ 4.8.1 15 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Test {
  5. public:
  6. const int a; //
  7. int& b;
  8. };
#7vboYB C++ 4.8.1 14 hours ago
Success
  1. #include <iostream>
  2. #include<math.h>
  3. using namespace std;
  4. int main()
  5. {
  6. int n=5,k=5,z=5,i,j,resultado,resultadofinal=1;
  7. cout<<"Introduzca un numero entero"<<endl;
  8. cin>>n;
  9. cout<<"Introduzca un numero entero"<<endl;
#IHyEWW C++ 4.8.1 15 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Test {
  5. const int a;
  6. int& b;
  7. };
  8.  
  9. int main() {
#QNFCfz C++ 4.8.1 15 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3. void draw()
  4. {
  5. int i,j;
  6. cout<<endl;
  7. for(int k=0;k<8;++k)
  8. cout<<" -";
  9. for(i=0;i<8;++i)
#b7Ef5j C++ 4.8.1 15 hours ago
Runtime error
  1. #include<bits/stdc++.h>
  2. #define scd(n) scanf("%d",&n)
  3. #define sclld(n) scanf("%lld",&n)
  4. #define scf(n) scanf("%f",&n)
  5. #define sclf(n) scanf("%lf",&n)
  6. #define scc(n) scanf("%c",&n)
  7. #define scs(n) scanf("%s",&n)
  8. #define prd(n) printf("%d\n",n)
  9. #define prlld(n) printf("%lld\n",n)
#4j2e7x C++ 4.8.1 15 hours ago
Compilation error
  1. void draw()
  2. {
  3. int i,j;
  4. cout<<endl;
  5. for(int k=0;k<8;++k)
  6. cout<<" -";
  7. for(i=0;i<8;++i)
  8. {
  9. cout<<endl;
#wtU2Y7 C++ 4.8.1 14 hours ago
Success
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. enum channel {star, sony, zee};
  6.  
  7. int i = 0;
  8. for(i = star; i <=sony; i++)
  9. {
#Jqp9TB C++ 4.8.1 15 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(void)
  5. {
  6. std::cout << "hola mundo" << std:: endl;
  7. return 0;
  8. }