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

#wN9hao C++ 4.8.1 4 hours ago
Success
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <string>
  4. #include <vector>
  5. #include <algorithm>
  6. using namespace std;
  7.  
  8. bool comp(string a,string b)
  9. {
#UheBbq C++ 4.8.1 4 hours ago
Success
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. int t,n,m,k,count;
  8. int b[30];
  9. scanf("%d",&t);
#tK2hYV C++ 4.8.1 5 hours ago
Compilation error
  1. # #include <iostream>
  2. # using namespace std;
  3. # int a, b;
  4. # int main()
  5. # {
  6. # cin >> a;
  7. # cin>>b;
  8. # cout<<a;
  9. # cout<<b;
#4x7g4Q 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 n,k;
  7. cin>>n>>k;
  8. int a[n],i,max,pos;
  9. for(i=0;i<n;i++){
#43Y8s1 C++ 4.8.1 2 hours ago
Success
  1. #include<iostream>
  2. using namespace std;
  3. int A[1000][1000];
  4. int B[1000][1000];
  5. int main()
  6. {
  7. int z;
  8. cin>>z;
  9. for(int il=0;il<z;il++)
#LMsa6R C++ 4.8.1 5 hours ago
Runtime error
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <time.h>
  4. using namespace std;
  5. int main() {
  6. int t,r;
  7. srand (time(NULL));
  8. for ( int k = 10000; k>0; k--) {
  9.  
#uDpSCM C++ 4.8.1 5 hours ago
Runtime error
  1. #include<bits/stdc++.h>
  2. #define loop(i,a,b) for(int i=a;i<b;i++)
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int n,k,temp;
#WdqBKy C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a;
  6. cin >> a;
  7. cout << a;
  8. }
#YTjysr C++ 4.8.1 3 hours ago
Compilation error
  1. #include<iostream>
  2. using namespace std;
  3. class Person {
  4. // Data members of person
  5. public:
  6. Person(int x) { cout << "Person::Person(int ) called" << endl; }
  7. };
  8.  
  9. class Faculty : public Person {
#Uur412 C++ 4.8.1 5 hours ago
Success
  1.  
  2.  
  3.  
  4. #include<iostream>
  5. #include<queue>
  6. #include<cstdlib>
  7. #include<cstring>
  8.  
  9. using namespace std;
#UEDrkx C++ 4.8.1 4 hours ago
Runtime error
  1. #include <iostream>
  2. #include<queue>
  3. #include<algorithm>
  4. using namespace std;
  5. long long x [300000] ;
  6. long long y [300000] ;
  7. int n , cap;
  8.  
  9. int main() {
#8o08ln C++ 4.8.1 5 hours ago
Runtime error
  1. #include <bits/stdc++.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <ctype.h>
  5.  
  6. using namespace std;
  7.  
  8.  
  9. int main()
#DwDZVn C++ 4.8.1 4 hours ago
Success
  1. #include<bits/stdc++.h>
  2.  
  3. using namespace std;
  4. long long int arr[200002];
  5. long long int val[200002];
  6.  
  7. int compare (const void * a, const void * b)
  8. {
  9. return ( *(int*)a - *(int*)b );
#wnOVNT C++ 4.8.1 5 hours ago
Success
  1. #include<iostream>
  2. #include<cstdio>
  3. using namespace std;
  4. int main(){
  5. int t;
  6. while(1){
  7. scanf("%d",&t);
  8. if(t==42)
  9. break;
#6HWmJD C++ 4.8.1 1 hour ago
Success
  1. #include<bits/stdc++.h>
  2. #define FOR(i,x,n) for(int i=x;i<n;i++)
  3. #define rFOR(i,x,n) for(int i=x;i>n;i--)
  4. #define ll long long
  5. #define fi first
  6. #define se second
  7. using namespace std;
  8. int main()
  9. {
#of8icX C++ 4.8.1 3 hours ago
Success
  1. #include <iostream>
  2. #include <limits.h>
  3. using namespace std;
  4.  
  5. int findMin(int arr[],int k)
  6. {
  7. //int n = (sizeof(arr)/sizeof(arr[0]));
  8. int min = INT_MAX;
  9. //cout << n;
#WncBnj C++ 4.8.1 4 hours ago
Success
  1. #include<bits/stdc++.h>
  2. #define loop(i,a,b) for(int i=a;i<b;i++)
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int n,k,temp;
#h8tRuk C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. #include <fstream>
  3. #include <string>
  4. #include <sstream>
  5.  
  6. using namespace std;
  7.  
  8.  
#toEvx8 C++ 4.8.1 4 hours ago
Success
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. struct point{
  4. double x,y;
  5. point(){}
  6. point(double a,double b){
  7. x=a;y=b;
  8. }
  9. void read(){
#t8jclK C++ 4.8.1 3 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. int main () {
  4. int x,n,k,min=200;
  5. cin>>n;
  6. for (int i=1; i<n; i++){
  7. cin>>x;
  8. if (x<min){
  9. min=x;
#g3Th2w C++ 4.8.1 2 hours ago
Runtime error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int t, n, liczba, liczby[n];
  6.  
  7. cin >> t;
  8. int suma=0;
  9.  
#kQlu9V C++ 4.8.1 5 hours ago
Runtime error
  1. #include<iostream>
  2. #include<math.h>
  3. #include<vector>
  4. using namespace std;
  5. int pr[1000];
  6.  
  7. int main()
  8. {int t,n,i,j,temp,fl,tt,pos;
  9. vector<int> x(1000001,1);
#nXhqRX C++ 4.8.1 5 hours ago
Success
  1. # include <iostream>
  2. # include <algorithm>
  3. # include <cstdio>
  4. # include <cmath>
  5. # include <numeric>
  6. # include <cstdlib>
  7. # include <cstring>
  8. # include <vector>
  9. # include <list>
#s1XXpE C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int a=8,b=5;
  7. cout<<(a^b)<<endl;
  8. cout<<(a|b);
  9. return 0;
#V30FYv C++ 4.8.1 5 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int arr_print(int *b, int m) {
  5. int i;
  6. cout << "Элементы массива равны: " << endl;
  7. for (i=0; i < m; i++){
  8. cout << b[i] << " ";
  9. }
#uFHxE9 C++ 4.8.1 5 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a=8,b=5;
  6. cout<<a^b<<endl;
  7. cout<<a|b;
  8. return 0;
  9. }
#alKvto C++ 4.8.1 5 hours ago
Success
  1. #include<iostream>
  2. #include<algorithm>
  3. #include<cstring>
  4. #include<string>
  5. #include<cstdio>
  6. #include<vector>
  7. using namespace std;
  8.  
  9. int main()
#Bimxj3 C++ 4.8.1 5 hours ago
Success
  1. #include<iostream>
  2. #include<cstdio>
  3. #include<algorithm>
  4. #include<string>
  5. #include<cstring>
  6. #include<queue>
  7. #include<vector>
  8. using namespace std;
  9. int a,b;
#bkLigv C++ 4.8.1 5 hours ago
Success
  1. #include<iostream>
  2. #include<algorithm>
  3. #include<cstring>
  4. #include<string>
  5. #include<cstdio>
  6. #include<vector>
  7. using namespace std;
  8.  
  9. int main()
#13JR0o C++ 4.8.1 1 hour ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int i,n,k,p,j;
  6. scanf("%d%d", &n, &k);
  7. int a[n+1];
  8. long long int sum;
  9. for(i=1;i<=n;i++) {scanf("%d", &a[i]); sum+=a[i];}