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

#9bGJgq C++ 4.8.1 15 hours ago
Success
  1. #include <iostream> // entrada salida
  2. #include <math.h> // funciones matematicas
  3. #include <stdio.h> // printf, scanf, puts, NULL
  4. #include <stdlib.h> // srand, rand
  5. #include <time.h> // time
  6.  
  7. using namespace std;
  8.  
  9. //-----------------------------------------------------------------
#bT4YWP C++ 4.8.1 14 hours ago
Compilation error
  1. //enso elmodo3 :3
#bUZZuh C++ 4.8.1 15 hours ago
Success
  1. #include<iostream>
  2. using namespace std;
  3. #include<string.h>
  4. int main()
  5. {
  6. int t;
  7. char feedback[100000];
  8. cin>>t;
  9. while(t--)
#AqZEFO C++ 4.8.1 15 hours ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int i;
  8. float summa;
  9. float mng;
#JlNOOH C++ 4.8.1 15 hours ago
Success
  1. int main()
  2. {
  3. char tb[]="Ala ma kota";
  4. char *ptr=tb;
  5. char *&rf=ptr;
  6. return 0;
  7. }
#uOfFBV C++ 4.8.1 15 hours ago
Compilation error
  1. int main()
  2. {
  3. char tb[]="Ala ma kota";
  4. char *ptr=tb;
  5. char &*rf=ptr;
  6. return 0;
  7. }
#79Gj2t C++ 4.8.1 16 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3. void f(int a[],int N){
  4. int x=0,b[200000],c;
  5. if(N>2){
  6. for(int i=N-2;i>=0;i--){
  7. for(int j=i-1;j>=0;j--)
  8. if(a[i]==a[j])x++;
  9. b[a[i]]=a[a[i]];
#EyKQq9 C++ 4.8.1 16 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3. int f(int a[],int N){
  4. int x=0,b[200000],c;
  5. if(N>2){
  6. for(int i=N-2;i>=0;i--){
  7. for(int j=i-1;j>=0;j--)
  8. if(a[i]==a[j])x++;
  9. b[a[i]]=a[a[i]];
#56gVOH C++ 4.8.1 16 hours ago
Runtime error
  1. #include <fstream>
  2. #include <cstring>
  3. #include <vector>
  4. #include <algorithm>
  5. using namespace std;
  6.  
  7. ifstream F("plimbare.in");
  8. ofstream G("plimbare.out");
  9.  
#m5qasB C++ 4.8.1 16 hours ago
Compilation error
  1. #include <cstdio>
  2. #include <hash_map>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. const int MX = 3e5 + 5;
  7. typedef long long LL;
  8. LL pref[MX], Res = 0;
  9. char a[MX];
#KPojFq C++ 4.8.1 16 hours ago
Runtime error
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n; // liczba slupow
  8. cout<<"Podaj wysokosc choinki: "<<endl;
  9. cin>>n;
#HK8BA0 C++ 4.8.1 16 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3. int f(int a[],int N){
  4. int x=0,b[200000],c;
  5. if(N>2){
  6. for(int i=N-2;i>=0;i--){
  7. for(int j=i-1;j>=0;j--)
  8. if(a[i]==a[j])x++;
  9. b[a[i]]=a[a[i]];
#lTFouU C++ 4.8.1 16 hours ago
Compilation error
  1. #include <iostream>
  2. #include <math.h>
  3.  
  4. using namespace std;
  5.  
  6. double Virogenie(double x, int n) //value=znachenie
  7. {
  8. double Ans;
  9. int Schet;
#zL4rRZ C++ 4.8.1 16 hours ago
Success
  1. #include <iostream>>
  2. using namespace std;
  3. int main () {
  4. int a,b,h=0;
  5. cin>>a>>b;
  6. h=a;
  7. if (h<b || h==0) { cout<<h; return 0; }
  8. else {
  9. while (a>=b) {
#zsVNGD C++ 4.8.1 15 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int func()
  5. {
  6. return 2;
  7. }
  8.  
  9. int main() {
#fniYuG C++ 4.8.1 16 hours ago
Compilation error
  1. #include <iostream>>
  2. using namespace std;
  3. int main () {
  4. int a,b,h=0;
  5. cin>>a>>b;
  6. h=a;
  7. if (h<b || h==0) { cout<<h; system ("pause"); return 0; }
  8. else {
  9. while (a>=b) {
#3VJmH7 C++ 4.8.1 16 hours ago
Compilation error
  1. #include stdio.h
  2. #include stdlib.h
  3.  
  4. int main(void)
  5. {
  6. FILE *outputFile;
  7. char file_name[256];
  8. int ch;
#7tXbmR C++ 4.8.1 16 hours ago
Success
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. unsigned long test = 145;
  8.  
  9. printf("%ds", sizeof(test));
#240azl C++ 4.8.1 15 hours ago
Success
  1. #include <iostream>
  2. #include <cstring>
  3. #include <stdio.h>
  4. using namespace std;
  5.  
  6. char* string_merge(char* ciag1, char* ciag2) {
  7. int w=0, mniejsze;
  8. char result[2002];
  9. if (strlen(ciag1) >= strlen(ciag2)) mniejsze = strlen(ciag2);
#tnhjqm C++ 4.8.1 16 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct s
  5. {
  6. int x;
  7. int y;
  8. };
#9AZqry C++ 4.8.1 16 hours ago
Success
  1. #include <cstdio>
  2. #include <map>
  3. #include <set>
  4. #include <algorithm>
  5. #include <iostream>
  6. #include <cstdlib>
  7. #include <sstream>
  8. #include <cmath>
  9. #include <map>
#8LUP5b C++ 4.8.1 16 hours ago
Success
  1. #include <iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4.  
  5. int main() {
  6. for(int a=0; a<20;a++){
  7. for (int c=(20-a)/2;c>=0;c--)
  8. {cout<<" ";
  9. }
#SZAU56 C++ 4.8.1 16 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout<<"merge";
  6. return 0;
  7. }
#p1sMVG C++ 4.8.1 16 hours ago
Success
  1. # include <stdio.h>
  2. # include <stdlib.h>
  3.  
  4. long unsigned int costArray[30][19];
  5. unsigned int amount;
  6.  
  7. unsigned int currentValue(short int factor2,short int factor3)
  8. { int j;
  9. unsigned int current = amount >> factor2;
#VgY7nM C++ 4.8.1 16 hours ago
Success
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main ()
  7. {
  8. int n;
  9. string line;
#4zVe9i C++ 4.8.1 16 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. static const int OWNS_BUFFER_FLAG = 1 << ( 4 /* sizeof( int ) */ * 8 - 1 );
  5.  
  6. int main()
  7. {
  8. int i = OWNS_BUFFER_FLAG;
  9. cout << ( i & ~OWNS_BUFFER_FLAG ) << endl;
#ITKvJX C++ 4.8.1 15 hours ago
Runtime error
  1. #include <iostream>
  2. #include <string>
  3. #include <map>
  4. #include <vector>
  5. #include <fstream>
  6. #include <cstdlib>
  7.  
  8. #define NUM_FIELDS 5
  9. struct SplitLine {
#T4ytzy C++ 4.8.1 13 hours ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int result[4][4];
  5. int score[4];
  6. int fav;
  7. int wins=0;
  8. void print_result()
  9. {
#cWxC6C C++ 4.8.1 16 hours ago
Success
  1. #include<iostream>
  2. #include<cmath>
  3. using namespace std;
  4.  
  5. bool isprime(long int num)
  6. {
  7.  
  8. int count=0;
  9. bool x=false;
#wHzYq1 C++ 4.8.1 16 hours ago
Success
  1. int primosBajos[] =
  2. { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71,
  3. 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173,
  4. 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281,
  5. 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409,
  6. 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541,
  7. 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659,
  8. 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 0 };