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

#0Ebhl2 C++ 4.9.2 3 hours ago
Success
  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>
#k3wzV5 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.  
  7. int data[10], s;
  8. data[1]=1;
  9. data[2]=2;
#9ChKdl C++ 4.9.2 4 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. float, feet
  7.  
  8. cout<<"Enter the feet";
  9. cin>><<"feet";
#srTyek C++ 4.9.2 5 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6.  
  7. int data[10], s;
  8. data[1]=1;
  9. data[2]=2;
#WtL6pI 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.  
  7. int data[10];
  8. data[1]=1;
  9. data[2]=2;
#n9CuAv C++ 4.9.2 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char a = '1';
  6. cout << (char)(a-'0'+48);
  7. // your code goes here
  8. return 0;
  9. }
#GJ7QUv C++ 4.9.2 4 hours ago
Time limit exceeded
  1. #include <iostream>
  2. #include <cstdio>
  3. #define ll long long
  4. using namespace std;
  5. int main()
  6. {
  7. int t;
  8. scanf("%d",&t);
  9. while(t!=0)
#dmS3SX C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. #include<string>
  3. using namespace std;
  4.  
  5. int main() {
  6. string s[101];
  7. int arr[17];
  8. int arr1[17];
  9. int i,t,z,x,c,m;
#AIx4l1 C++ 4.9.2 5 hours ago
Success
  1. #include<iostream>
  2. #include<string>
  3. #include<vector>
  4. #include<ctype.h>
  5. #include<math.h>
  6. using namespace std;
  7. int main(){
  8. string str;
  9. vector <int> a;
#SoKd36 C++ 4.9.2 5 hours ago
Success
  1. #include <stdio.h>
  2. #include <time.h>
  3.  
  4. void scanc(int &x)
  5. {
  6. register int c = getchar();
  7. x = 0;
  8. for(; (c<48 || c>57); c = getchar());
  9. for(; (c>47 && c<58) || c==46; c = getchar())
#v7sOdf C++ 4.9.2 5 hours ago
Success
  1. #include <cmath>
  2. #include <cstdio>
  3. #include <vector>
  4. #include <iostream>
  5. #include <algorithm>
  6. using namespace std;
  7.  
  8.  
  9. int main() {
#ODTdCn C++ 4.9.2 4 hours ago
Success
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6. ios_base::sync_with_stdio(0);
  7. int t;
  8. cin>>t;
#uLIAbE C++ 4.9.2 5 hours ago
Time limit exceeded
  1. #include <stdio.h>
  2. #include <time.h>
  3.  
  4. void scanc(int &x)
  5. {
  6. register int c = getchar();
  7. x = 0;
  8. for(; (c<48 || c>57); c = getchar());
  9. for(; (c>47 && c<58) || c==46; c = getchar())
#gJmyjZ C++ 4.9.2 2 hours ago
Compilation error
  1. #include <iostream>
  2. #include <stdlib.h>
  3. #include <time.h>
  4. using namespace std;
  5.  
  6.  
  7.  
  8. int r,c,t,g,a;
  9. bool i;
#i9uYCb C++ 4.9.2 5 hours ago
Success
  1. #include <stdio.h>
  2. #include <time.h>
  3.  
  4. void scanc(int &x)
  5. {
  6. register int c = getchar();
  7. x = 0;
  8. for(; (c<48 || c>57); c = getchar());
  9. for(; (c>47 && c<58) || c==46; c = getchar())
#XFqcBE C++ 4.9.2 5 hours ago
Success
  1. #include <stdio.h>
  2. #include <time.h>
  3.  
  4. void scanc(int &x)
  5. {
  6. register int c = getchar();
  7. x = 0;
  8. for(; (c<48 || c>57); c = getchar());
  9. for(; (c>47 && c<58) || c==46; c = getchar())
#1c4o0r C++ 4.9.2 4 hours ago
Success
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.  
  6. unsigned int t=0;
  7. cin>>t;
  8. while(t--)
  9. {
#NUvvoo C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class B
  5. {
  6. public:
  7. int a;
  8. B() = delete;
  9. };
#4Cyo0x C++ 4.9.2 5 hours ago
Success
  1. #include <stdio.h>
  2. #include <time.h>
  3.  
  4. void scanc(int &x)
  5. {
  6. register int c = getchar();
  7. x = 0;
  8. for(; (c<48 || c>57); c = getchar());
  9. for(; (c>47 && c<58) || c==46; c = getchar())
#U7ydsj C++ 4.9.2 3 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int t;
  6. int m[12]={31,28,31,30,31,30,31,31,30,31,30,31};
  7. string w[7]={"Wednesday","Thursday","Friday","Saturday","Sunday","Monday","Tuesday"};
  8. cin>>t;
  9. for(int i=0;i<t;i++)
#79LlMp C++ 4.9.2 5 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. float, RM;
  7.  
  8. cout<<"Enter the RM";
  9. cin>>"RM";
#OcS1Ry C++ 4.9.2 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class GP
  5. {
  6. protected:
  7. int gpVar;
  8.  
  9. public:
#Wzb461 C++ 4.9.2 5 hours ago
Success
  1. #include <cmath>
  2. #include <cstdio>
  3. #include <vector>
  4. #include <iostream>
  5. #include <algorithm>
  6. using namespace std;
  7.  
  8.  
  9. int main() {
#UhbFnG C++ 4.9.2 5 hours ago
Runtime error
  1. #include <iostream>
  2. #include<cstring>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int a;
  8. cin >>a;
  9. for(int i=0;i<a;i++) {
#OsYkMG C++ 4.9.2 5 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void f(int &p)
  5. {
  6. int &p2 = p + 1;
  7. cout << "Value is: " << p2;
  8. }
#gXoGso C++ 4.9.2 4 hours ago
Success
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <vector>
  4.  
  5. using namespace std;
  6.  
  7. int skret(pair<int, int> a, pair<int, int> b, pair<int, int> c)
  8. {
  9. return a.first * b.second + a.second * c.first + b.first * c.second - c.first*b.second - c.second*a.first - b.first * a.second;
#3x2NT4 C++ 4.9.2 5 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void f(long &p)
  5. {
  6. cout << "Value is: " << p;
  7. }
  8.  
#e7vSW8 C++ 4.9.2 5 hours ago
Success
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <vector>
  4.  
  5. using namespace std;
  6.  
  7. int skret(pair<int, int> a, pair<int, int> b, pair<int, int> c)
  8. {
  9. return a.first * b.second + a.second * c.first + b.first * c.second - c.first*b.second - c.second*a.first - b.first * a.second;
#zYuurP C++ 4.9.2 5 hours ago
Success
  1. #include <stdio.h>
  2. void scanc(int &x)
  3. {
  4. register int c = getchar();
  5. x = 0;
  6. for(; (c<48 || c>57); c = getchar());
  7. for(; (c>47 && c<58) || c==46; c = getchar())
  8. {
  9. if(c==46) continue;
#z7g4TW C++ 4.9.2 5 hours ago
Runtime error
  1. #include <stdio.h>
  2. void scanc(int &x)
  3. {
  4. register int c = getchar();
  5. x = 0;
  6. for(; (c<48 || c>57); c = getchar());
  7. for(; (c>47 && c<58) || c==46; c = getchar())
  8. {
  9. if(c==46) continue;