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

#f66Qkv C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. int main()
  3. {
  4. short n, x=0;
  5. while(std::cin >> n)
  6. {
  7. x += n;
  8. std::cout << x << std::endl;
  9. }
#NvF5J1 C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
#9IIc1H C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char ch[105];int lwr=0,upr=0,total=0;
  7. cin>>ch;
  8. if(ch[0]>=97 && ch[0] <= 122)
  9. cout<<ch[0];
#c4Dk5O C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char ch[105];int lwr=0,upr=0,total=0;
  7. cin>>ch;
  8. if(ch[0]>=97 && ch[0] <= 122)
  9. cout<<ch[0];
#sF2Eoo C++ 4.8.1 5 hours ago
Success
  1. #include <algorithm>
  2. #include <cstdio>
  3. #include <cstring>
  4. #include <iostream>
  5. #include <list>
  6. #include <vector>
  7. #include <map>
  8. using namespace std;
  9.  
#eJFN0b C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char ch[105];int lwr=0,upr=0,total=0;
  7. cin>>ch;
  8. if(ch[0]>=97 && ch[0] <= 122)
  9. cout<<ch[0];
#i4Yl1h C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char ch[105];int lwr=0,upr=0,total=0;
  7. cin>>ch;
  8. if(ch[0]>=97 && ch[0] <= 122)
  9. cout<<ch[0];
#Zf0pUS C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char ch[105];int lwr=0,upr=0,total=0;
  7. cin>>ch;
  8. if(ch[0]>=65 && ch[0] <= 90)
  9. cout<<ch[0];
#dcTsOY C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <cmath>
  4. #include <limits>
  5.  
  6. #include <math.h>
  7.  
  8. using namespace std;
#RCSqwU C++ 4.8.1 5 hours ago
Success
  1. #include <bits/stdc++.h>
  2. #define ll long long
  3. #define M 1000000007
  4. #define rep(i,s,n) for(long int i=s;i<n;i++)
  5. using namespace std;
  6.  
  7. const int mx = 1000010;
  8.  
  9. ll dp[1000010],temp;
#auRMJa C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char ch[105];int lwr=0,upr=0,total=0;
  7. cin>>ch;
  8. cout<<ch[0];
  9. for(int i=0;i!=NULL;i++)
#Y3HtcU C++ 4.8.1 5 hours ago
Time limit exceeded
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int m, a, p, w, t=0;
  6. cin >> m >> a >> p >> w;
  7. while(m<a)
  8. {
  9. int m=m+p;
#kGOzn1 C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char ch[105];int lwr=0,upr=0,total=0;
  7. cin>>ch;
  8. cout<<ch[0];
  9. for(int i=0;i!='\0';i++)
#gdZEiP C++ 4.8.1 5 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. private static String pad ( final String x, final int n)
  7. {
  8. String res = new String(x);
  9. for (int i=1; i<=n; i++)
#BRiZuR C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char ch[105];int lwr=0,upr=0,total=0;
  7. cin>>ch;
  8. for(int i=0;i!='\0';i++)
  9. {
#YsGshQ C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int t=0;
  7. cin>>t;
  8. cout<<t;
  9. return 0;
#kIVBTR C++ 4.8.1 5 hours ago
Success
  1. #include<iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int n,i,j;
  8. cin>>n;
  9. int array[n];
#HLOB8c C++ 4.8.1 4 hours ago
Success
  1. #include<stdio.h>
  2.  
  3. #include<string.h>
  4. int main() {
  5. int t;
  6. scanf("%d",&t);
  7. while(t--)
  8. {
  9. char s[102];
#EkA8O0 C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char ch[105];int lwr=0,upr=0,total=0;
  7. for(int i=0;i!='\0';i++)
  8. {
  9. if(ch[i]>=65 && ch[i]<=90)
#e6MtP9 C++ 4.8.1 5 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. float a=25;
  7. float b=sqrt(a);
  8. cout<<b;
  9. return 0;
#8M62l5 C++ 4.8.1 5 hours ago
Runtime error
  1. #include <iostream>
  2. #include<string.h>
  3. #include<math.h>
  4. using namespace std;
  5.  
  6.  
  7. int main()
  8. {
  9. //cout << "Hello World!" << endl;
#fXwiHt C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char ch[105];int lwr=0,upr=0,total=0;
  7. for(int i=0;i!='\0';i++)
  8. {
  9. if(ch[i]>=65 && ch[i]<=90)
#GQY47c C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char ch[105];int lwr=0,upr=0,total=0;
  7. for(int i=0;i!='\0';i++)
  8. {
  9. if(ch[i]>=65 && ch[i]<=90)
#XcfTrt C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. #include<math.h>
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. return 0;
  8. }
#r8kWrd C++ 4.8.1 4 hours ago
Success
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5.  
  6. string str,newstr="\0";
  7. getline(cin,newstr,'\0');
  8. int sum=0,sub=0,prod=1,div=0;
  9. int num=0;
#raXcgd C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. void recur(int n,int value,int count)
  4. {
  5. if(count==0)
  6. return;
  7. else
  8. {
  9. cout<<value<<" ";
#BjMM0r C++ 4.8.1 5 hours ago
Success
  1. /*
  2. NISHANT GUPTA
  3. CSE-MNNIT ALLAHABAD
  4. */
  5. #include <iostream>
  6. #include <cstdio>
  7. #include <cstdlib>
  8. #include <cmath>
  9. #include <queue>
#5a4tbW C++ 4.8.1 5 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x,y,i,k;
  6. cout<< "Podaj wysokosc"<<endl;
  7. cin>>x;
  8. cout<< "podaj szerokosc"<<endl;
  9. cin>>y;
#j4DSuR C++ 4.8.1 3 hours ago
Success
  1. #include <iostream>
  2. #include <fstream>
  3. #include <stdio.h>
  4. #include <algorithm>
  5. #include <string>
  6. #include <vector>
  7. #include <math.h>
  8. #include <cmath>
  9. #include <map>
#qpSmeT C++ 4.8.1 5 hours ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define LOCAL 0
  5. #define PB push_back
  6. #define LB lower_bound
  7. #define UB upper_bound
  8. #define ALL(c) (c).begin(), (c).end()
  9. #define FOR(i, s, e) for(int i = (s); i < (e); i++)