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

#E3R6wy C++11 29 minutes ago
Compilation error
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. #define PRINT_RESULT (str1, str2) \
  6. cout << "OneEditApart(" << (str1) << "," << (str2) << ")" << \
  7. OneEditApart((str1), (str2))
  8.  
  9. bool InsertEditApart(const string& str1, const string& str2)
#lQGfIG C++11 35 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i = 0;
  6. cout << ++i << ' ' << i << '\n';
  7. return 0;
  8. }
#861uJV C++11 19 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char Mes[][11] = { "Enero", "Febrero", "Marzo", "Abril",
  6. "Mayo", "Junio", "Julio", "Agosto",
  7. "Septiembre", "Octubre", "Noviembre", "Diciembre"};
  8. char* Mes2[] = { "Enero", "Febrero", "Marzo", "Abril",
  9. "Mayo", "Junio", "Julio", "Agosto",
#iqgsKe C++11 36 minutes ago
Compilation error
  1.  
  2. int main() {
  3. char Mes[][11] = { "Enero", "Febrero", "Marzo", "Abril",
  4. "Mayo", "Junio", "Julio", "Agosto",
  5. "Septiembre", "Octubre", "Noviembre", "Diciembre"};
  6. char *Mes2[] = { "Enero", "Febrero", "Marzo", "Abril",
  7. "Mayo", "Junio", "Julio", "Agosto",
  8. "Septiembre", "Octubre", "Noviembre", "Diciembre"};
  9.  
#M07zCM C++11 16 minutes ago
Success
  1. #include <iostream>
  2. #include <memory>
  3. #include <utility>
  4. #include <stdint.h>
  5. using namespace std;
  6.  
  7. template<typename T, typename... Args>
  8. std::shared_ptr<T> factory(Args&&... args) {
  9. std::cout << "Got type " << typeid(T).name() << std::endl;
#PIqBRz C++11 42 minutes ago
Success
  1. #include<iostream>
  2. #include<string>
  3.  
  4. using namespace std ;
  5.  
  6. int main (){
  7. string x , y , z;
  8. cin >> x >> y >> z ;
  9.  
#ap68Lb C++11 43 minutes ago
Runtime error
  1. #include <vector>
  2.  
  3. template<class T>
  4. struct nonsequential_memory_iterator;
  5.  
  6. template<class T>
  7. struct nonsequential_memory {
  8. explicit nonsequential_memory(std::size_t count) {
  9. std::size_t block_size = count;
#fRhLsw C++11 23 minutes ago
Success
  1. #include <iostream>
  2. #include <stack>
  3. #include <sstream>
  4. #include<cstdio>
  5. #include<algorithm>
  6. using namespace std;
  7. #define N 1000
  8. int arr[N][N];
  9. int temp[N][N];
#ECgv64 C++11 1 minute ago
Success
  1. #include <iostream>
  2. #define MAX_CELL 64
  3. #include <cmath>
  4. #include <string>
  5.  
  6. using namespace std;
  7.  
  8.  
  9. struct Cell {
#zlX8C6 C++11 48 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <type_traits>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. std::add_lvalue_reference<int*>::type q = *new int*;
  8. q = 1;
  9. return 0;
#AJZump C++11 52 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char cadena1[] = "Cadena 1";
  6. char *cadena2 = "Cadena 2";
  7.  
  8. cout << cadena1 << endl;
  9. cout << cadena2 << endl;
#o1cCjy C++11 55 minutes ago
Success
  1. #include <iostream>
  2. #define MAX_CELL 64
  3. #include <cmath>
  4. #include <string>
  5.  
  6. using namespace std;
  7.  
  8.  
  9. struct Cell {
#JQ6gVx C++11 55 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct stEstructura {
  5. int a, b;
  6. } estructura, *e;
  7.  
  8. int main() {
  9. estructura.a = 10;
#6cKXtY C++11 53 minutes ago
Success
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main() {
  6. vector<string> test {"z"};
  7. for(unsigned i = 0; i < test.size()-1;i++) std::cout << "one\n";
  8. return 0;
  9. }
#LOjGUq C++11 58 minutes ago
Compilation error
  1. #include <iostream>
  2. int main()
  3. {
  4. std:: cout <<"hello"<< std::end1;
  5. return 0;
  6. }
#eDz6lk C++11 59 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct stEstructura {
  5. int a, b;
  6. } estructura, *e;
  7.  
  8. int main() {
  9. estructura.a = 10;
#37i3Wi C++11 59 minutes ago
Success
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4. int main(){
  5.  
  6. string a , b , c ;
  7. cin >> a >> b >> c;
  8. if ( a == "vertebrado" ){
  9. if ( b == "ave"){
#u38N3Q C++11 23 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int answer;
  6. for (int i=1; i<11; i++){
  7. if (i%3==0 && i%5==0){
  8. answer=answer+i;
  9. }
#7psneV C++11 57 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int x=12,y=5;
  7. auto z = ((double)x)/y;
  8. cout<<z;
  9. return 0;
#9O8ait C++11 1 hour ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct A
  5. {
  6. char c;
  7. int i;
  8. };
#sFygIE C++11 1 hour ago
Success
  1. #include<iostream>
  2. #include<string>
  3.  
  4. using namespace std ;
  5.  
  6. int main (){
  7. string x , y , z;
  8. cin >> x ;
  9. cin >> y ;
#ckEKwH C++11 18 minutes ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int mult ( int x, int y );
  6.  
  7. int main()
  8. {
  9. int x;
#8uIraU C++11 1 hour ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout << "Hello world!"
  6. return 0;
  7. }
#jmYjyL C++11 1 hour ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. #include <ctime>
  4.  
  5. int main() {
  6. size_t secondsSinceEpoch = std::time(0);
  7. std::cout << secondsSinceEpoch << endl;
  8. return 0;
  9. }
#bzjdja C++11 1 hour ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i = 0;
  6. switch(i) {
  7. case 0: break;
  8. case 0: break;
  9. }
#IW34Ye C++11 1 hour ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a=1.2095,b=55;
  6. cout.precesion(3);
  7. cout<<a;
  8. return 0;
  9. }
#WP8v2g C++11 1 hour ago
Success
  1. #include <iostream>
  2. #include <random>
  3. #include <unordered_map>
  4. #include <vector>
  5.  
  6. using namespace std;
  7.  
  8. random_device rd;
  9. mt19937 gen(rd());
#o08ecT C++11 1 hour ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int p;
  6. int sum=0;
  7. int a,b,c,d,e,f,g,h,i;
  8.  
  9. while(cin>>p){
#UdybY4 C++11 1 hour ago
Success
  1. #include <iostream>
  2. #include <list>
  3.  
  4. class bar
  5. {
  6. int cat;
  7. };
  8.  
  9. class foo
#oCp5dO C++11 1 hour ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. class Base
  6. { // Define a base class
  7. public:
  8. virtual void Func1() = 0;
  9. virtual void Func2();