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

#JhdYx6 C++11 1 minute ago
Compilation error
  1. #include <iostream>
  2.  
  3. #include <fstream>
  4.  
  5. #include <iomanip>
  6.  
  7. //include function libraries
  8. using namespace std;
  9. int main()
#n67m7X C++11 2 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a;
  6. *&a=5;
  7. cout<<a<<endl;
  8. return 0;
  9. }
#uQ5jnE C++11 3 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a;
  6. *&a=5;
  7. cout<<5<<endl;
  8. return 0;
  9. }
#miPt3H C++11 6 minutes ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. #define MAKS_DL 20
  6.  
  7. int main ()
  8. {
  9. char linia [ MAKS_DL ];
#26XLsY C++11 7 minutes ago
Success
  1. // Author : Nishanth Vijayan
  2. // Institution: IIT Ropar,India.
  3. //
  4. // Spoj : http://www.spoj.com/users/nishanth_v/
  5. // Codechef : http://www.codechef.com/users/nishanth_v
  6. // HackerEarth : http://www.hackerearth.com/users/nishanththegr8/
  7. // Facebook : https://www.facebook.com/NishanthTheGr8
  8. //
  9. // Motto : The Less You Give A Fuck, The Happier You'll Be. :)
#us5ZTJ C++11 12 minutes ago
Success
  1. // Author : Nishanth Vijayan
  2. // Institution: IIT Ropar,India.
  3. //
  4. // Spoj : http://www.spoj.com/users/nishanth_v/
  5. // Codechef : http://www.codechef.com/users/nishanth_v
  6. // HackerEarth : http://www.hackerearth.com/users/nishanththegr8/
  7. // Facebook : https://www.facebook.com/NishanthTheGr8
  8. //
  9. // Motto : The Less You Give A Fuck, The Happier You'll Be. :)
#wzyKVA C++11 15 minutes ago
Success
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. struct point{
  5. int x,y,walk;
  6. point() {};
  7. point(int _x, int _y, int _walk) {
  8. x = _x; y = _y; walk = _walk;
  9. }
#mTUjaa C++11 16 minutes ago
Success
  1. #include <iostream>
  2.  
  3. typedef void unused;
  4.  
  5. int main() {
  6. int i;
  7. void* p;
  8. (unused)i;
  9. p = &i;
#WVElxG C++11 16 minutes ago
Compilation error
  1. #include <iostream>
  2.  
  3. typedef void unused_t;
  4.  
  5. int main() {
  6. int i;
  7. void* p;
  8. (unused)i;
  9. p = &i;
#dhuKQv C++11 5 seconds ago
Running
  1. #include "bits/stdc++.h"
  2. using namespace std;
  3. int main(int argc, char const *argv[])
  4. {
  5. ios_base::sync_with_stdio(0);
  6.  
  7. string qwerty = "`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./";
  8.  
  9. string in;
#6K1HUg C++11 17 minutes ago
Runtime error
  1. #include <iostream>
  2.  
  3. int main() {
  4. for (int i = 0; i < 4; ++i) {
  5. std::cout << i*1000000000 << std::endl;
  6. }
  7. }
#7hORQo C++11 16 minutes ago
Success
  1. #include <iostream>
  2. #include <math.h>
  3. #include <stdio.h>
  4. using namespace std;
  5.  
  6. inline int foo(float a, float r, float g, float b)
  7. {
  8. unsigned int num = ((((long)ceil((a * 255.0) - 0.5)) << 24)
  9. + (((long)ceil((r * 255.0) - 0.5)) << 16)
#83T7XE C++11 14 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3. void mergesort(int A[], int lo,int hi)
  4. {
  5. int end_lo, k,mid,start_hi,T;
  6. if(lo<=hi) return ;
  7. mid=(lo+hi)/2;
  8. mergesort(A,lo,mid);
  9. mergesort(A,mid+1,hi);
#FWTgKK C++11 3 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5. int x = 0; //y, r, t, f, g, u = 0;
  6. cout<<"Enter x:"<<endl;//введите значение аргумента
  7. cin>>x;//записать введённое значение в перменную х
  8. cout<<"x"<<endl;
  9. return 0;
#mC4fe2 C++11 19 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i,j,k,n,m;
  6. cin>>n;
  7. m=n;
  8. for(i=1;i<=n;i++)
  9. {
#Q8lzI5 C++11 20 minutes ago
Success
  1. // Type your code here, or load an example.
  2. #include <stdio.h>
  3. main()
  4. {
  5. int val = 1;
  6. const int cv = 10;
  7. switch(val)
  8. {
  9. case cv:;
#ssDoXt C++11 20 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i,j,k,n,m;
  6. cin>>n;
  7. m=n;
  8. for(i=1;i<=n;i++)
  9. {
#xn3NqK C++11 22 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i,j,k,n,m;
  6. cin>>n;
  7.  
  8. for(i=1;i<=n;i++)
  9. {
#kjvcMJ C++11 24 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. auto func = [] () {
  6. int intNum = 0;
  7. cin >> intNum;
  8. while (intNum != 42) {
  9. cout << intNum << "\n";
#yWB5Og C++11 25 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i,j,k,n,m;
  6. cin>>n;
  7.  
  8. for(i=1;i<=n;i++)
  9. {
#5OObEN C++11 26 minutes ago
Runtime error
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. main ()
  5.  
  6. {
  7.  
  8. int j;
  9. float m[j];
#8RIe8K C++11 27 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i,j,k,n,m;
  6. cin>>n;
  7.  
  8. for(i=1;i<=n;i++)
  9. {
#NVnkDk C++11 27 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout << "blablabla";
  6. sin.get();
  7. return0;
  8. }
#9uEEbp C++11 29 minutes ago
Compilation error
  1. #include"stdafx.h"
  2. #include<iostream>
  3. #include<stdio.h>
  4. usingnamespace std;
  5.  
  6. int_tmain(intargc, _TCHAR* argv[])
  7. {
  8. int a[10],i,j,max;
  9. char l;
#TPvn5z C++11 28 minutes ago
Success
  1. #include <iostream>
  2. #include <climits>
  3. using namespace std;
  4.  
  5. int main() {
  6. auto n = ULLONG_MAX;
  7. cout << n << endl;
  8. return 0;
  9. }
#suAgV4 C++11 30 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout << "blahblahblah";
  6. sin.get();
  7. return 0;
  8. }
#67WfPo C++11 30 minutes ago
Success
  1. #include <algorithm>
  2. #include <vector>
  3. #include <string>
  4. #include <iostream>
  5. using namespace std;
  6. bool cmp(pair <string, int> a, pair <string, int> b){
  7. if (a.second != b.second)return a.second < b.second;
  8. return false;
  9. }
#2q73q0 C++11 12 minutes ago
Success
  1. #include<iostream>
  2. #include <vector>
  3. #include<stdio.h>
  4. #include<string>
  5. #include<string.h>
  6. #include <list>
  7. #include <algorithm>
  8. using namespace std;
#MHFedF C++11 32 minutes ago
Compilation error
  1. #include <stdio.h>
  2. #include <string>
  3. #include <map>
  4. #include <iostream>
  5.  
  6. using namespace std;
  7.  
  8. int main() {
  9. map<string, int> fios;
#2ZhOzJ C++11 34 minutes ago
Success
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <vector>
  4. #include <queue>
  5. #include <list>
  6. #include <climits>
  7. #include <string>
  8. #include <stack>
  9. #include <map>