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

#awBQNO C++11 9 seconds ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. double d,c;
  7. d,c = 3,14;
  8. std::cout << d << std::endl;
  9. std::cout << c << std::endl;
#C4g4Yx C++11 59 seconds ago
Runtime error
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6. //since 1 is not a prime number
  7. int x=2;
  8.  
  9. while(x <= 1000000)
#M2SBqD C++11 2 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct A
  5. {
  6. };
  7.  
  8. struct B : A
  9. {
#1a1woc C++11 4 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. double d;
  7. d = 3 / 2.0;
  8. std::cout << d << std::endl;
  9. d = 3.14;
#B0nv9z C++11 6 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. double d;
  7. d = 3 / 2;
  8. std::cout << d << std::endl;
  9. d = 3.14;
#s2FPi0 C++11 6 minutes ago
Success
  1. /*
  2. * Author: Justin Ryan L. Ayubo
  3. * Solution for: PA #1
  4. * Algorithm:
  5. * Details of algo goes here
  6. * Date of Submission: August 21, 2014
  7. * Honor Code:
  8. * I certify that I did not give or receive any aid in this activity and
  9. * that I fully understand the consequences of violating such as
#G2Iymp C++11 10 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct a
  5. {
  6. static int id;
  7. };
  8.  
  9. template <typename T>
#2KhsPl C++11 9 minutes ago
Success
  1.  
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int function = -10;
  9. while ( function > 4 && function < 0){
#qzE1eN C++11 11 minutes ago
Compilation error
  1. int d(int x) {
  2. if (x == 1)
  3. return 0;
  4. return d(x / dv[x]) + 1;
  5. }
  6.  
  7. int main() {
  8. dv[1] = 1;
  9. for (int i = 2; i < kMaxVal; ++i)
#RCWPE0 C++11 11 minutes ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6. //since 1 is not a prime number
  7. int x=2, y=1;
  8.  
  9. while(x <= 1000000)
#RiO5CQ C++11 12 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. int const i=10;
  4. int main()
  5. {
  6. const int i=20;
  7. cout<<&i<<" "<<&::i;
  8. // your code goes here
  9. return 0;
#8Os14X C++11 15 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. double cube(double);
  4. int main() {
  5. cout<<cube(5);
  6. return 0;
  7. }
  8. inline double cube(double side)
  9. {
#piQ7Al C++11 15 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. double cube(double);
  4. int main() {
  5. cube(5);
  6. return 0;
  7. }
  8. inline double cube(double side)
  9. {
#dvbTA0 C++11 17 minutes ago
Compilation error
  1. #include <iostream.h>
  2. void main()
  3. {
  4. int a=1,b=5,c;
  5. cin>>a>>b;
  6. c=a+b;
  7. cout<<c;
  8. getch();
  9. }
#BvHQhN C++11 21 minutes ago
Runtime error
  1. #include <cstdio>
  2. #define Nmax 500005
  3. #define MOD 9917
  4.  
  5. using namespace std;
  6.  
  7. int N,a[Nmax],aux[Nmax],sol;
  8.  
  9. inline void Merge(int st, int mij, int dr)
#ZvY5ws C++11 19 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n,flag=1,t,i;
  7. cin>>n;
  8. t=n/100;
  9. for(i=0;i<t;i++)
#DPXQGO C++11 21 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. int find(int b[],int m,int n){
  4. int i;
  5. for(i=0;i<m;i++){
  6. if(b[i]==n)
  7. return i;
  8. }
  9. }
#IwAZJt C++11 25 minutes ago
Compilation error
  1. // ConsoleApplication10.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include <iostream>
  5. #include <fstream>
  6.  
  7. void intput_point(int **mas, int x, int y);
  8. void output_point_all(int **mas,int n);
  9. void sort_point_x(int **mas,int start,int end);
#9Tlshw C++11 20 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <array>
  3. using namespace std;
  4.  
  5. struct Coordinate {
  6. int x;
  7. int y;
  8. };
#0DrYdb C++11 26 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Cell {
  5. long val;
  6. struct Cell *prev;
  7. struct Cell *next;
  8. };
#S4ixhL C++11 18 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. double d;
  7. d = 3,14;
  8. std::cout << d << std::endl;
  9. d = 3.14;
#7gijrr C++11 28 minutes ago
Success
  1. #include <iostream>
  2. #include <memory>
  3. using namespace std;
  4.  
  5. struct A
  6. {
  7. size_t a;
  8. size_t b;
  9. };
#MXfzWY C++11 29 minutes ago
Success
  1. #include <iostream>
  2. #include <complex>
  3. using namespace std;
  4.  
  5. class A {
  6. public:
  7. virtual void foo(int i) {
  8. cout << "A::foo(int) " << i << endl;
  9. }
#fHJpEU C++11 35 minutes ago
Success
  1. // ConsoleApplication10.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include <iostream>
  5. #include <fstream>
  6.  
  7. void intput_point(int **mas, int x, int y);
  8. void output_point_all(int **mas,int n);
  9. void sort_pint_x(int **mas);
#GTv9jb C++11 35 minutes ago
Success
  1. #include <cstdio>
  2. #include <iostream>
  3. #include <cstdlib>
  4. #include <vector>
  5. #define f(i,a,b) for(int i=a;i<b;++i)
  6. using namespace std;
  7. int main()
  8. { int t; cin>>t;
  9. f(i,0,t)
#IsIbNk C++11 37 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
#SvCnWW C++11 38 minutes ago
Success
  1. #include <cstdio>
  2. #include <iostream>
  3. #include <cstdlib>
  4. #include <vector>
  5. #define f(i,a,b) for(int i=a;i<b;++i)
  6. using namespace std;
  7. int main()
  8. { int t; cin>>t;
  9. f(i,0,t)
#FuVLSX C++11 40 minutes ago
Success
  1. #include <iostream>
  2. #include<complex>
  3. #include<math.h>
  4. using namespace std;
  5.  
  6. int main() {
  7. int n;
  8. const double PI=3.14;
  9. cin>>n;
#jQnETP C++11 40 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int kases;
  8. cin >> kases;
  9. int kase;
#8pkbAq C++11 41 minutes ago
Success
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int n,q;
  6. int l,r,mid;
  7. int cnt;
  8.  
  9. string lol;