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

#mptAsM C++11 13 seconds ago
Runtime error
  1. #include <iostream>
  2. #include <vector>
  3. #include <memory>
  4. #include <algorithm>
  5.  
  6. struct state_t
  7. {
  8. std::string name;
  9.  
#umqXW5 C++11 3 minutes ago
Success
  1. #include <iostream>
  2. #include <stdio.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int n;
  9. cout << "Hello World" << endl;
#7xamu4 C++11 3 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a,b ;
  6. cin >> a;
  7. cin >> b;
  8. fmax(a,b);
  9.  
#HTEZRI C++11 4 minutes ago
Success
  1. #include <iostream>
  2. #include <stdio.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int n;
  9. cout << "Hello World" << endl;
#W5Y8ru C++11 8 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout << "hello world" << endl ;
  6. return 0;
  7. }
#46xWic C++11 34 seconds ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(int argc, char **argv) {
  5. char code[]={0x33, 0x83, 0x94};
  6. cout << "MUL " << hex << (*code + 1) << "," << hex << (*code + 2);
  7. return 0;
  8. }
#dhqHs3 C++11 10 minutes ago
Runtime error
  1. #include <cstdio>
  2. #include <cstdlib>
  3. #include <cstring>
  4. #include <climits>
  5. struct posi_loca{
  6. int left,right,priority;
  7. posi_loca *leftptr,*rightptr;
  8. };
  9. class express{
#xxFgab C++11 17 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class T
  5. {
  6. public:
  7. void print()
  8. {
  9. std::cout << "Hello world!" << std::endl;
#P1iMC5 C++11 20 minutes ago
Compilation error
  1.  
#hDo06a C++11 11 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. #define M(a) ((a)*(a))
  4. #define L(a) ((a)*(a)*(a))
  5.  
  6. int main(void)
  7. {
  8. int i,a=1;
  9.  
#svOzvE C++11 17 minutes ago
Success
  1. #include <iostream>
  2. #include <stdlib.h>
  3. #include<string.h>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. char string[128]="This is a test you know!",tempstring[128];
#xyysy1 C++11 21 minutes ago
Compilation error
  1. #include <iostream>
  2.  
  3. int main()
  4.  
  5. {
  6.  
  7. //Below are two strings that can hold several char variables
  8.  
  9. char todaysMonth[10];
#QlmcWY C++11 13 minutes ago
Success
  1. #include <string>
  2. #include <cstdlib>
  3. #include <fstream>
  4. #include <iostream>
  5. using namespace std;
  6.  
  7. // Interface for SafeArray class
  8. //--------------------------------
  9. class SafeArray
#E9SZWO C++11 24 minutes ago
Success
  1. // Welcome to the Interactive C++ Tutorial.
  2. // Start by choosing a chapter and
  3. // write your code in this window.
  4.  
  5. #include <iostream>
  6. using namespace std;
  7.  
  8. int main() {
  9. cout << "Hello, World!" << endl;
#IIUjnJ C++11 24 minutes ago
Success
  1. #include <iostream>
  2. #include <functional>
  3.  
  4. using namespace std;
  5. typedef function<int(int)> func;
  6.  
  7. int f2(int x){
  8. return x*x;
  9. }
#s5478N C++11 26 minutes ago
Success
  1. /* Welcome to the Interactive C++ Tutorial.
  2. Start by choosing a chapter and
  3. write your code in this window. */
  4.  
  5. #include <iostream>
  6. using namespace std;
  7.  
  8. int main() {
  9. cout << "Hello, World!" << endl;
#wq99LO C++11 26 minutes ago
Compilation error
  1. /* Welcome to the Interactive C++ Tutorial.
  2. Start by choosing a chapter and
  3. write your code in this window. */
  4.  
  5. #include <iostream>
  6.  
  7. int main() {
  8. std::cout << "Hello, World!" << endl;
  9. return 0;
#CfWtX9 C++11 26 minutes ago
Compilation error
  1. /* Welcome to the Interactive C++ Tutorial.
  2. Start by choosing a chapter and
  3. write your code in this window. */
  4.  
  5. #include <iostream>
  6.  
  7. int main() {
  8. cout << "Hello, World!" << endl;
  9. return 0;
#iswAft C++11 26 minutes ago
Success
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cstdlib>
  4. using namespace std;
  5.  
  6. int main() {
  7.  
  8. srand(0xbeef);
  9.  
#9nWcF2 C++11 27 minutes ago
Compilation error
  1. /* Welcome to the Interactive C++ Tutorial.
  2. Start by choosing a chapter and
  3. write your code in this window. */
  4.  
  5. #include <stdio.h>
  6.  
  7. int main() {
  8. cout << "Hello, World!" << endl;
  9. return 0;
#zHTwc8 C++11 28 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <string>
  3. #include <windows.h>
  4. #include <cstdlib>
  5. #include <iomanip>
  6. #include <conio.h>
  7. #include <fstream>
  8.  
  9. using namespace std;
#1wNRNp C++11 28 minutes ago
Compilation error
  1. /* Welcome to the Interactive C++ Tutorial.
  2. Start by choosing a chapter and
  3. write your code in this window. */
  4.  
  5. #include <stdio>
  6.  
  7. int main() {
  8. cout << "Hello, World!" << endl;
  9. return 0;
#usyUBQ C++11 28 minutes ago
Compilation error
  1. #include <iostream>
  2.  
  3. int main(todaysDate, numberOfSchoolDaysLeftUntilSummer)
  4.  
  5. {
  6.  
  7. //Below are two strings that can hold several char variables
  8.  
  9. char todaysMonth[10];
#0B1mLj C++11 30 minutes ago
Runtime error
  1. #include<stdio.h>
  2. #include<string.h>
  3. #include<iostream>
  4. using namespace std;
  5. int main()
  6. {
  7. int i,k=0;
  8. char s[80];
  9. cout<<"Hay nhap ho ten : ";
#VWKzOa C++11 32 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
#lRF9CO C++11 29 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i,j,n;
  6. cout<<"enter n:";
  7. cin>>n;
  8. cout<<"\n\n";
  9. for(i=0;i<n;i++)
#ZT2aMZ C++11 25 minutes ago
Success
  1. #include <string>
  2. #include <cstdlib>
  3. #include <fstream>
  4. #include <iostream>
  5. using namespace std;
  6.  
  7. // Interface for SafeArray class
  8. //--------------------------------
  9. class SafeArray
#7M5o3x C++11 44 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <list>
  3. using namespace std;
  4.  
  5. int main() {
  6. std::list<int> myList;
  7. int tam;
  8.  
  9. scanf("%d",&tam);
#jZlccC C++11 46 minutes ago
Runtime error
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int *p1, *p2;
  6. int a = 5;
  7. int b;
  8. p1 = &a;
  9. p1 = p2;
#igBTaN C++11 46 minutes ago
Runtime error
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int *p1, *p2;
  6. int a = 5;
  7. int b;
  8. p1 = &a;
  9. p1 = p2;