Looking for an inspiration? Below you will find public programs submitted by other users.

Filter by: All Bash C C# C++ 4.9.2 C++14 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 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) Python (Pypy) R Scala Scheme (chicken) Scheme (guile) Smalltalk Tcl Text Unlambda Whitespace

#2rc69X C++14 25 seconds ago
Success
  1. #include <iostream>
  2. #include <ctime>
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. const char *time_details = "16:35:12";
  8. struct tm tm;
  9. strptime(time_details, "%H:%M:%S", &tm);
#edbtC1 C++14 1 minute ago
Compilation error
  1. #include<iostream> // Allows input output operations
  2. #include <iomanip>
  3. #include<math.h>
  4.  
  5. using namespace std;
  6.  
  7. #define N 200
  8. #define ARRAY_SIZE (N*N)
  9. #define M 100
#yE8ESR C++14 52 seconds ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. auto a = [](auto n){cout << n << endl;};
  6.  
  7.  
  8. a (123);
  9.  
#CdngD8 C++14 2 minutes ago
Success
  1. #include <iostream>
  2.  
  3. #define sm(pa) #pa
  4.  
  5. int main()
  6. {
  7. std::cout << sm(opoa) << std::endl;
  8. return 0;
  9. }
#8eU1gk C++14 1 minute ago
Success
  1. #include <iostream>
  2. #include <string>
  3. #include <stack>
  4.  
  5.  
  6. class BST
  7. {
  8. private:
  9. typedef struct structNode
#pvZqGN C++14 3 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. cout << "What is your name: " << endl;
  7.  
  8. string input;
  9. cin >> input;
#QSPmjj C++14 1 minute ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a = 3;
  6. int b = 4;
  7. int r;
  8. cin >> a;
  9. cin >> b;
#9VYLGW C++14 3 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout<<"Hello"
  6. return 0;
  7. }
#esCvI1 C++14 3 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. return 0;
  6. }
#eE2H14 C++14 5 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. cout<<R"(\\na\nb)"
  7. <<endl;
  8. return 0;
  9. }
#JmlSvx C++14 6 minutes ago
Success
  1. #include <iostream>
  2. #include <string>
  3. #include <map>
  4. #include <vector>
  5. #include <fstream>
  6. #include <cstdlib>
  7.  
  8. #define NUM_FIELDS 3
  9. struct SplitLine {
#uLuqRK C++14 6 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. void test(char ** & a){
  4. printf("b");
  5. }
  6. int main(void) {
  7. printf("aa");
  8. char ** a;
  9.  
#d41TLW C++14 3 minutes ago
Success
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. void swap (int& first, int& second)
  5. {
  6. int temp = first;
  7. first = second;
  8. second = temp;
  9. second = first;
#DM1mWX C++14 11 minutes ago
Success
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n=0,i=0;
  7. int a[100001]={0},b[100001]={0};
  8. cin>>n;
  9. while(n!=0)
#0zhO60 C++14 46 seconds ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. long long power(long x,long y,long l){
  5.  
  6. if(y==0){
  7. return 1;
  8. }
  9. else{
#NuWoXA C++14 12 minutes ago
Success
  1. #include <cstdint>
  2.  
  3. #include <iostream>
  4.  
  5. class Solution {
  6. public:
  7. uint32_t reverseBits(uint32_t n) {
  8. uint32_t a = 0;
  9. for (int i = 0; i < 16; ++i) {
#RAcFLO C++14 13 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i = 0;
  6.  
  7. scanf("Youhoo: %d\n", &i);
  8.  
  9. printf("Hello Regev %d", i);
#XWoYZa C++14 16 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <cstdio>
  4. using namespace std;
  5.  
  6. bool checkpal(string s,int start,int end)
  7. {
  8. int i;
  9. for(i=start;i<=(start+end)/2;i++)
#5bNwlQ C++14 16 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <cstdio>
  4. using namespace std;
  5.  
  6. bool checkpal(string s,int start,int end)
  7. {
  8. int i;
  9. for(i=start;i<=(start+end)/2;i++)
#R2iUSr C++14 5 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. float abc()
  4. {
  5. //char a ='q';
  6. //double a ;
  7. long a;
  8. return a;
  9. }
#bUrKYn C++14 14 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5.  
  6. typedef struct Link
  7. {
  8. int val;
  9. struct Link *nxt;
#aR1Fst C++14 19 minutes ago
Success
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. int main()
  5. {
  6. std::vector<int> v;
  7. std::cout << (v.begin() == v.end()) << std::endl;
  8.  
  9. return 0;
#0S4YRl C++14 12 minutes ago
Compilation error
  1. #include <vector>
  2. #include <memory> // for auto_ptr
  3. #include <cmath> // for the log10 and floor functions
  4. #include <iostream>
  5. #include <iomanip> // for the setw function
  6.  
  7. using namespace std;
  8.  
  9. typedef vector< int > IntRow;
#SIoQBM C++14 11 seconds ago
Success
  1. #include <iostream>
  2. #include <map>
  3. using namespace std;
  4.  
  5. int main() {
  6. int n, counter, max, pointer;
  7. cin >> n;
  8. bool flag;
  9. map<string, int> result;
#Hj7MYU C++14 20 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <cstdio>
  4. using namespace std;
  5.  
  6. bool checkpal(string s,int start,int end)
  7. {
  8. int i;
  9. for(i=start;i<=(start+end)/2;i++)
#Yn9C96 C++14 21 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. std::cout << "Hello World" << std::endl;
  6. return 0;
  7. }
#J1Sv5f C++14 17 minutes ago
Success
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. using namespace std;
  5.  
  6. void takeInput()
  7. {
  8. int input;
  9. vector<int> store;
#zHwZCD C++14 15 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int wagi[] = {7, 3, 1, 9, 7, 3, 1, 7, 3};
  6. int cyfra[] = {10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35};
  7. char litera[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};
  8.  
  9.  
#mSLl5s C++14 22 minutes ago
Success
  1. #include<iostream>
  2. #include<cstdio>
  3. #include<cmath>
  4. #include<cstring>
  5. #include<string>
  6. #include<stack>
  7. #include<queue>
  8. #include<algorithm>
  9. #define MAX 100
#GY9hcU C++14 22 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. Int a = 0, b = 0;
  6. For ( int i = 0; i < 72; i++)
  7. { char c; cin >> c;
  8. If (c == 'q') a+=9;
  9. Else if ( c == 'Q') b+=9;