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

#v1Fidd C++ 4.8.1 4 hours ago
Success
  1.  
#NAB9Om C++ 4.8.1 4 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;
#X8fssv C++ 4.8.1 4 hours ago
Success
  1. #include <iostream>
  2. #include<iomanip>
  3. using namespace std;
  4. int main ()
  5. { int i,j;
  6. int a [4] [4]={ {1,2,3,4}, {5,6,7,8}, {9,10,11,12}, {13,14,15,16} };
  7. cout<< "Vnesete ja prvata matrica: "<<endl;
  8. for (i=0; i<4; i++)
  9. {
#ArL9k1 C++ 4.8.1 4 hours ago
Runtime error
  1. #include <iostream>
  2. #define max 1000000007
  3. using namespace std;
  4.  
  5. int schemes(int n) {
  6. int a[n+1];
  7. a[1]=0;a[2]=12;
  8. for(int i=3;i<=(max-7);++i) {
  9. a[i]=(2*a[i-1])%max+(3*a[i-2])%max;
#KqCL0c C++ 4.8.1 4 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;
#8Snxd5 C++ 4.8.1 4 hours ago
Success
  1. #include <iostream>
  2. #include <ctime>
  3. using namespace std;
  4.  
  5. int main() {
  6. int C[10] = {1, 7, 6, 14, 31, 11, 54, 9, 0, 3};
  7. float A[10] = {5, 6, 0.3, 5.7, 8.8, 4.5, 3.2, 1, 0, 7.2};
  8. int kC=0, kA=0;
  9. for (int i = 0; i < 10; i++) {
#TrcV51 C++ 4.8.1 4 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. typedef struct __attribute__ ((__packed__)) {
  5. char a;
  6. int b;
  7. char c;
  8. } struct_t;
#vScNsL C++ 4.8.1 4 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;
#C0Nm5O C++ 4.8.1 4 hours ago
Compilation error
  1. #include <iostream>
  2. #define max 1000000007
  3. using namespace std;
  4.  
  5. int schemes(int n) {
  6. int a[n+1];
  7. a[1]=0;a[2]=12;
  8. for(int i=3;i<=(max-7);++i) {
  9. a[i]=(2*a[i-1])%max+(3*a[i-2])%max;
#YMZ2MJ C++ 4.8.1 4 hours ago
Success
  1. #include<cstdio>
  2. #include <iostream>
  3. using namespace std;
  4. long long int t[100005]={0};
  5.  
  6. void set(int n,int i,int v)
  7. {
  8. while(i<=n)
  9. {
#6V8JoU C++ 4.8.1 4 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. typedef struct __attribute__ ((__packed__)) {
  5. char a;
  6. int b;
  7. char c;
  8. } struct_t;
#DsMZVY C++ 4.8.1 4 hours ago
Compilation error
  1. #include <iostream>
  2. #define max 1000000007
  3. using namespace std;
  4.  
  5. int schemes(int n) {
  6. int a[n+1];
  7. a[1]=0;a[2]=12;
  8. for(int i=3;i<=(max-7);++i) {
  9. a[i]=(2*a[i-1])%max+(3*a[i-2])%max;
#NdQm2F C++ 4.8.1 4 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. #define mod 1000000009
  4. unsigned long long dp[1000001]={0};
  5. int main() {
  6. dp[0]=1;
  7. dp[1]=0;
  8. dp[2]=1;
  9. dp[3]=1;
#fkFAWa C++ 4.8.1 4 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char s[10];
  6. s="string";
  7. cout<<s;
  8. return 0;
  9. }
#ifiI4B C++ 4.8.1 4 hours ago
Success
  1. #include <iostream>
  2. #include <ctime>
  3. using namespace std;
  4.  
  5. int main() {
  6. int C[10] = {1, 7, 6, 14, 31, 22, 54, 9, 0, 3};
  7. float A[10] = {5, 6, 0.3, 5.7, 8.8, 4.5, 3.2, 1, 0, 7.2};
  8. int kC=0, kA=0;
  9. for (int i = 0; i < 10; i++) {
#XzR1e5 C++ 4.8.1 4 hours ago
Compilation error
  1. #include <iostream>
  2. #define max 1000000007
  3. using namespace std;
  4.  
  5. void schemes(int n) {
  6. int a[n+1];
  7. a[1]=0;a[2]=12;
  8. for(int i=3;i<=(max-7);++i) {
  9. a[i]=(2*a[i-1])%max+(3*a[i-2])%max;
#DL4IAT C++ 4.8.1 4 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. typedef struct __attribute__ ((__packed__)) {
  5. char a;
  6. long long int b;
  7. char c;
  8. } struct_t;
#6erccr C++ 4.8.1 3 hours ago
Success
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. double time(int x1, int y1, int x2, int y2, int v)
  7. {
  8. return sqrt(double(abs(x2-x1)*abs(x2-x1) + abs(y2-y1)*abs(y2-y1))) / double(v);
  9. }
#29sW5H C++ 4.8.1 4 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. typedef struct __attribute__ ((__packed__)) {
  5. char a;
  6. long int b;
  7. char c;
  8. } struct_t;
#kHiulE C++ 4.8.1 4 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char s;
  6. s="string";
  7. cout<<"s"
  8.  
  9. return 0;
#cjgekS C++ 4.8.1 4 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. typedef struct __attribute__ ((__packed__)) {
  5. char a;
  6. int b;
  7. char c;
  8. } struct_t;
#NLgAEx C++ 4.8.1 4 hours ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. bool is_prime(int n) {
  5. long long r = 2;
  6. while (r*r <= n) {
  7. if (n % r == 0) return false;
  8. ++r;
  9. }
#TXqISt C++ 4.8.1 4 hours ago
Success
  1. #include <iostream>
  2. #include <ctime>
  3. using namespace std;
  4.  
  5. int main() {
  6. int C[10] = {1, 7, 6, 14, 31, 22, 54, 9, 0, 3};
  7. float A[10] = {5, 6, 0.3, 5.7, 8.8, 4.5, 3.2, 1, 0, 7.2};
  8. int kC=0, kA=0;
  9. for (int i = 0; i < 10; i++) {
#6nM5oU C++ 4.8.1 4 hours ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int *p=&n, n;
  5. return 0;
  6. }
#J5Dj8C C++ 4.8.1 4 hours ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. // your code goes here
  6.  
  7. return 0;
  8. }
#IUwerT C++ 4.8.1 4 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct structure __attribute__ ((__packed__)) {
  5. char a;
  6. int b;
  7. char c;
  8. };
#VeQ8fv C++ 4.8.1 4 hours ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct structure __attribute__ (packed) {
  5. char a;
  6. int b;
  7. char c;
  8. };
#sMqDwO C++ 4.8.1 4 hours ago
Compilation error
  1. #include <iostream>
  2. #define max 1000000007
  3. using namespace std;
  4. int a[max-6];
  5.  
  6. void schemes() {
  7. a[1]=0;a[2]=12;
  8. for(int i=3;i<=(max-7);++i) a[i]=2*a[i-1]+3*a[i-2];
  9. return;
#YpKDim C++ 4.8.1 2 hours ago
Success
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main(int argc, char* argv[])
  5. {
  6. int NUM,num;
  7. cin>>NUM;
  8. num = NUM;
  9. signed long pow[NUM],val[NUM],x,ten;
#jwYK42 C++ 4.8.1 4 hours ago
Success
  1. #include <iostream>
  2. #include <ctime>
  3. using namespace std;
  4.  
  5. int main() {
  6. int C[10] = {1, 7, 6, 14, 31, 22, 54, 9, 0, 3};
  7. float A[10] = {5, 6, 0.3, 5.7, 8.8, 4.5, 3.2, 1, 0, 7.2};
  8. int kC=0, kA=0;
  9. for (int i = 0; i < 10; i++) {