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

#AbYPI1 C++ 4.8.1 8 hours ago
Runtime error
  1. #include <cstdio>
  2. #include <set>
  3. #include <iterator>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. long int n, size, i;
#xymCsZ C++ 4.8.1 8 hours ago
Runtime error
  1. #include <iostream>
  2. #include <vector>
  3. #include<stack>
  4. using namespace std;
  5. int find(vector<int> r)
  6. {
  7.  
  8. int res=0;
  9. stack<int> s;
#jD05So C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int n,m,q,i,j,a[105][5005],b[105],md,l,h;
  5.  
  6. int main()
  7. {
  8. cin>>n>>m>>q;
  9. for(i=0;i<n;i++)for(j=0;j<m;j++)cin>>a[i][j];
#k4donx C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. string a("foo");
  8. string b("foo");
  9. if(a == b) {
#IMpeMj C++ 4.8.1 8 hours ago
Runtime error
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int n;
  9. scanf("%d",&n);
#MKOA5y C++ 4.8.1 6 hours ago
Success
  1. #include <iostream>
  2. #include<cstdio>
  3. #define Max 761238923
  4. using namespace std;
  5.  
  6. int n;
  7. long long ans,dp[101][101];
  8. long long rec(int ind,int prev)
  9. {
#W77net C++ 4.8.1 8 hours ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. typedef long long ll;
  5.  
  6.  
  7. const ll mod=1000000007ll;
  8. double eps=1e-8;
#uy1pyQ C++ 4.8.1 8 hours ago
Compilation error
  1.  
  2. #include "debayer_tb.h"
  3. #include "debayer.h"
  4. #include "wami_params.h"
  5. #include "wami_utils.h"
  6. #include "wami_debayer.h"
  7. #include "mydata.h"
  8. #include <ctime>
  9. #include <ostream>
#3NuiMB C++ 4.8.1 8 hours ago
Runtime error
  1. #include <cstdio>
  2. #include <set>
  3. #include <iterator>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. long int n, size, i;
#yTRjiS C++ 4.8.1 8 hours ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int i;
  6. int n = 20;
  7. for(i=0;i<n;n--)
  8. printf("-")
  9. return 0;
#For1BX C++ 4.8.1 8 hours ago
Compilation error
  1. #include<iostream>
  2. #include<cmath>
  3. using namespace std;
  4. int main()
  5. {
  6. int a, b;
  7.  
  8. cin>>a>>b;
  9. cout<< a = b << b = a;
#nF17aF C++ 4.8.1 7 hours ago
Success
  1. #include <iostream>
  2. #include<bits/stdc++.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int n,p,k,i,left,right;
  9. cin>>n>>p>>k;
#bxkfmL C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. bool a[101][101][101]={0};
  4.  
  5. int main() {
  6. // your code goes here
  7. for(int i=1;i<=100;i++)
  8. {
  9. if(i%2 == 1)
#tkMIUH C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout << "Witaj. Zaobaczymy czy jestes dobry z Fizyki."<< endl;
  6. char odp;
  7. int wynik = 0;
  8. cout << "Zaczynajmy! Pierwsze pytanie" << endl;
  9. cout << "Jaki jest wzór na natezenie pradu?"<< endl;
#ZiEZGj C++ 4.8.1 8 hours ago
Compilation error
  1. #ifndef _DEBAYER_TB_
  2. #define _DEBAYER_TB_
  3.  
  4. #include "systemc.h"
  5. #include <ctime>
  6. #include <ostream>
  7.  
  8.  
#P2rBH3 C++ 4.8.1 28 minutes ago
Success
  1.  
  2. #include <stdio.h>
  3. #include <locale.h>
  4.  
  5. int main(void)
  6. {
  7. int a,b,c,d,bb,bm,mb,mm,ans;
  8. printf("Vvedite chisla a,b,c,d:");
  9. scanf("%i", &a);
#rhJH0I C++ 4.8.1 8 hours ago
Compilation error
  1.  
  2. #include <stdio.h>
  3. #include <locale.h>
  4.  
  5. int main(void)
  6. {
  7. int a,b,c,d,bb,bm,mb,mm,ans;
  8. printf_s("Vvedite chisla a,b,c,d:");
  9. scanf_s("%a", &a);
#M9ivJD C++ 4.8.1 8 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout << "Witaj. Zaobaczymy czy jestes dobry z Fizyki."<< endl;
  6. char odp;
  7. int wynik = 0;
  8. cout << "Zaczynajmy! Pierwsze pytanie" << endl;
  9. cout << "Jaki jest wzór na natezenie pradu?"<< endl;
#lP1imx C++ 4.8.1 8 hours ago
Success
  1. #include <stdio.h>
  2.  
  3. inline long long int fast_input(void)
  4. {
  5. char t;
  6. long long int x=0;
  7. long long int neg=0;
  8. t=getchar();
  9. while((t<48 || t>57) && t!='-')
#XoZUdh C++ 4.8.1 8 hours ago
Success
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. long long a;
  6. int b;
  7. int d[3][3];
  8. int c[3][3];
  9. cin >> a >>b;
#ptlqq0 C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. long n,fac=1,i;
  6. cin >> n;
  7. if (n < 0) cout << "n must be >=0" << endl;
  8. else if (n > 0) for (i=1;i<=n; i++) fac =fac *i;
  9. if (n>=0) cout << "factorial " << n << " is " << fac << endl;
#w97ue8 C++ 4.8.1 8 hours ago
Runtime error
  1. #include <cstdio>
  2. #include <set>
  3. #include <iterator>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. long int n, size, i;
#b3XphD C++ 4.8.1 8 hours ago
Time limit exceeded
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. long long a;
  6. int b;
  7. int d[3][3];
  8. int c[3][3];
  9. cin >> a >>b;
#SiXjvL C++ 4.8.1 7 hours ago
Compilation error
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int minPosition(int Arry[], int l, int r) {
  6. int i;
  7. int minIndex; // generally not the same variable name will be used here
  8. minIndex = 0;
  9. for (i = 1; i < N; ++i)
#Sb6spY C++ 4.8.1 8 hours ago
Runtime error
  1. #include <cstdio>
  2. #include <set>
  3. #include <iterator>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. long int n, size, i;
#mjw6W8 C++ 4.8.1 8 hours ago
Compilation error
  1. #include "debayer_tb.h"
  2.  
  3. static const char *output_filename = "large_kernel1_output.bin";
  4. static const char *golden_output_filename = "large_golden_kernel1_output.bin";
  5. static const char *input_filename = "large_kernel1_input.bin";
  6.  
  7. //read input files input/input.txt and input/golden_out.txt
  8. //for input.txt, line 1: clock period T-clk,
  9. //line 2: time resent when reset is deactivated, t-rst
#6qF39v C++ 4.8.1 8 hours ago
Success
  1. #include<iostream>
  2. #include<cmath>
  3. using namespace std;
  4. int main()
  5. {
  6. int a;
  7.  
  8. cin>>a;
  9. cout<<a/60<< "h" <<a%60<< "min";
#04NQ8S C++ 4.8.1 8 hours ago
Compilation error
  1. #include <iostream>
  2. #include<bits/stdc++.h>
  3. using namespace std;
  4. typedef long long ll;
  5. long long fun(long long s,long long M)
  6. {
  7. //s*(1+s)*(1+2*s)*(-1+3*s+3*s^2)/30
  8. // s= 30t + y
  9. ll sM,c2,c3,c90,c6;
#uSwqfv C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout << "Witaj. Zaobaczymy czy jestes dobry z Fizyki."<< endl;
  6. char odp;
  7. int wynik = 0;
  8. cout << "Zaczynajmy! Pierwsze pytanie" << endl;
  9. cout << "Jaki jest wzór na natezenie pradu?"<< endl;
#nyfUBI C++ 4.8.1 8 hours ago
Success
  1. #include <iostream>
  2. #include<string.h>
  3. using namespace std;
  4. char ar[10];
  5. int binry(int,int);
  6. int k=2;
  7. int main() {
  8. // your code goes here
  9. int n=2,c;