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

#Cljjo9 C++ 4.9.2 4 hours ago
Compilation error
  1. /* ! (1 || 0) = False { ! (1 || 0)=!(1)=False }
  2. ( 1 || (1 && 0 ))=True { ( 1 || (1 && 0 ))=1 || 0 = 1 = True }
  3. ! ( ( 1 || 0 ) && 0 )=True { ! ( ( 1 || 0 ) && 0 ) = ! (1 && 0) = ! (0) = True }
  4. ! (1 == 0)= True { ! (1 == 0) = !(False)=True }
#LO1Rv0 C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. for (int i = 0; i < 10; i++) {
  7. cout << i << endl;
  8. }
  9. }
#k8BRsQ C++ 4.9.2 4 hours ago
Compilation error
  1.  
  2. #include <iostream>
  3. #include <string>
  4. #include <algorithm>
  5. #include <stack>
  6. #include <cstring>//used for memset
  7.  
  8. using namespace std;
#BfJnAX C++ 4.9.2 4 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i;
  6. for( i=1 ; i<=10 ; i++ ){
  7. printf("%d\n", i);
  8. }
  9. return 0;
#D6amCb C++ 4.9.2 4 hours ago
Success
  1. #include <stdio.h>
  2.  
  3. int main ()
  4. {
  5. int i;
  6. for( i=1 ; i<=10 ; i++ ){
  7. printf("%d\n", i);
  8. }
  9. return 0;
#UB3to0 C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7.  
  8. {
  9. int n;
#YpzO51 C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7.  
  8. {
  9. int n;
#pSdBML C++ 4.9.2 4 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a = 3
  6. b = a * 51;
  7. c = (a<<5)+(a<<4)+(a<<1)+(a);
  8.  
  9. cout<<b;
#MvvmDb C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int variable1;
  8. char char1;
  9. float variable2;
#wwJeny C++ 4.9.2 4 hours ago
Compilation error
  1. #include<iostream>
  2. #include<conio>
  3. using namespace std;
  4. void main()
  5. {
  6. int a;
  7. cout<<"enter your value\n";
  8. cin>>a;
  9. try
#8Bjl2Y C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. #include <algorithm>
  3. using namespace std;
  4.  
  5. int main() {
  6. int n,k,p[51],t[51],c[51];
  7. cin>>n>>k;
  8. for(int i=0;i<n;i++){
  9. cin>>p[i]>>t[i];
#pUAByQ C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. #include <math.h>
  3. #include <stdlib.h>
  4. #include <cmath>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. system(" COLOR FC");
#ixp92e C++ 4.9.2 3 hours ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. long long int flooring(int);
  4. long long int a[3000000]={0};
  5. int main() {
  6. // your code goes here
  7. int t;
  8. cin>>t;
  9. while(t--)
#OFoU5G C++ 4.9.2 4 hours ago
Success
  1. #include <stdio.h>
  2. #include <iostream>
  3. #include <string.h>
  4. using namespace std;
  5.  
  6. int cnt[30001];
  7. int dp[30001][2];
  8.  
  9. int main() {
#oiVOPA C++ 4.9.2 3 hours ago
Success
  1. #include<iostream>
  2. #include<cstring>
  3. #include<stdio.h>
  4.  
  5. using namespace std;
  6.  
  7. int part(char *a, int p, int r){
  8. char x;
  9. char temp1, temp2;
#TG3pui C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. #include <algorithm>
  3. using namespace std;
  4.  
  5. int main() {
  6. int n,k,p[50],t[50],c[50];
  7. cin>>n>>k;
  8. for(int i=0;i<n;i++){
  9. cin>>p[i]>>t[i];
#x6dBOD C++ 4.9.2 4 hours ago
Success
  1. #include<iostream>
  2. #include<iostream>
  3. #include<cstdlib>
  4. using namespace std;
  5.  
  6. typedef struct node{
  7. int x,y;
  8. struct node *next;
  9. }N;
#B7nHSj C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. struct Foo {
  6. operator int() {
  7. cout << "operator int" << endl;
  8. return 0;
  9. }
#cIVMOe C++ 4.9.2 3 hours ago
Success
  1. #include<iostream>
  2. #define ll long long
  3. using namespace std;
  4. int main()
  5. {
  6. ll arr[1001];
  7. ll brr[1001];
  8. ll mod= 1000000007;
  9. arr[1]=2;
#2mqclg C++ 4.9.2 4 hours ago
Success
  1. #include<cstring>
  2. #include<iostream>
  3. using namespace std;
  4. int main()
  5. {
  6. int date,month,year,t,n1,n,a,b,b1,c,a1,c1,d1,total,ad,dd,i;
  7. cin>>t;
  8. while(t--)
  9. {
#2Jr0mk C++ 4.9.2 4 hours ago
Success
  1. #include<stdio.h>
  2. #include<string.h>
  3. int main()
  4. {
  5. int i,j,k,n,t,l1,l2,p,x;
  6. char ch[1000],s[1000];
  7. gets(ch);
  8. scanf("%d",&n);
#LBoFd3 C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout<<"hello";
  6. return 0;
  7. }
#J1jSDE C++ 4.9.2 3 hours ago
Runtime error
  1. #include<iostream>
  2. #include<string>
  3.  
  4.  
  5. using namespace std;
  6.  
  7.  
  8.  
  9. int main()
#9xBIEk C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. #include <algorithm>
  3. using namespace std;
  4.  
  5. int main() {
  6. int n,k,p[50],t[50],c[50];
  7. cin>>n>>k;
  8. for(int i=0;i<n;i++){
  9. cin>>p[i]>>t[i];
#4eawPM C++ 4.9.2 4 hours ago
Success
  1. #include<bits/stdc++.h>
  2. #define SI(n) scanf("%d",&n)
  3. #define SII(a,b) scanf("%d%d",&a,&b)
  4. #define SIII(a,b,c) scanf("%d%d%d",&a,&b,&c)
  5. #define SDD(a,b) scanf("%lf%lf",&a,&b)
  6. #define SLL(n) scanf("%lld",&n)
  7. #define SLLLL(n,c) scanf("%lld%lld",&n,&c)
  8. #define SC(r) scanf("%c",&r)
  9. #define SS(r) scanf("%s",r)
#MakfId C++ 4.9.2 4 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class X {};
  5. X f() { return X(); } // Return by value
  6. void g1(X&) {} // Pass by non-const reference
  7. void g2(const X&) {} // Pass by const reference
  8. int main() {
  9. // Error: const temporary created by f():
#1s2UF9 C++ 4.9.2 4 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int a = 10, b = 20, c = 30;
  7. printf(ā€œ%d %d %dā€, a+b+c, b=b*2, c=c*2);
  8. return 0;
  9. }
#hBnN96 C++ 4.9.2 4 hours ago
Compilation error
  1. #include<bits/stdc++.h>
  2. #define SI(n) scanf("%d",&n)
  3. #define SII(a,b) scanf("%d%d",&a,&b)
  4. #define SIII(a,b,c) scanf("%d%d%d",&a,&b,&c)
  5. #define SDD(a,b) scanf("%lf%lf",&a,&b)
  6. #define SLL(n) scanf("%lld",&n)
  7. #define SLLLL(n,c) scanf("%lld%lld",&n,&c)
  8. #define SC(r) scanf("%c",&r)
  9. #define SS(r) scanf("%s",r)
#PXHZnj C++ 4.9.2 4 hours ago
Success
  1. #include<stdio.h>
  2. #include<string.h>
  3. int main()
  4. {
  5. int i,j,k,n,t,l1,l2,p,x;
  6. char ch[1000],s[1000];
  7. gets(ch);
  8. scanf("%d",&n);
#n4PD8C C++ 4.9.2 4 hours ago
Compilation error
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {