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

Filter by: Bash C C# C++ 5.1 C++14 Haskell Java Java7 Objective-C Pascal (fpc) Pascal (gpc) Perl PHP Python Python 3 Ruby SQL VB.NET more...

#4XzHFY C 4 minutes ago
Compilation error
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdint.h>
  4.  
  5. // Enable both ECB and CBC mode. Note this can be done before including aes.h or at compile-time.
  6. // E.g. with GCC by using the -D flag: gcc -c aes.c -DCBC=0 -DECB=1
  7. #define CBC 1
  8. #define ECB 1
#h5HqZI C++14 4 minutes ago
Time limit exceeded
  1. // is it a tree
  2. #include <iostream>
  3. #include<vector>
  4. using namespace std;
  5. int sz = 0 ,res = 0 ;
  6. int listA[1000] , listB[1000] , listC[1000] ,listD[1000] ;
  7. void recursive(int a , int b ,int c ,int d , int pos)
  8. {
  9. if(a+b+c+d==0)res++;
#2HpzMa Java 5 minutes ago
Runtime error
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#sdCVND Java 5 minutes ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#NiTqwX C 3 minutes ago
Compilation error
  1. #include <stdio.h>
  2. int main()
  3. {
  4. char arr[]="GeeksQuiz";
  5. printf("%s",?);
  6. return 0;
  7. }
#VXENyu C++14 5 minutes ago
Success
  1. #include <iostream>
  2. #include <string>
  3. #include <sstream>
  4. #include <cmath>
  5. #include <algorithm>
  6.  
  7. using namespace std;
  8. bool a[3002];
#1RuWSp Java 5 minutes ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2.  
  3. interface myinter
  4. { int x;
  5. void display();
  6. } class A implements myinter
  7. {
  8. public void display()
  9. {
#ztCv3f C 1 minute ago
Success
  1. #include <stdio.h>
  2. long giai_thua(int in) {
  3. if (in == 0)
  4. return 1;
  5. else
  6. return in * giai_thua(in-1);
  7. }
  8.  
  9. double xac_suat(int in) {
#j38qyd C++ 4.3.2 5 minutes ago
Success
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. struct node{
  6. int data;
  7. node *l,*r,*p;
  8. };
  9. typedef node* tree;
#yxb2mf C 6 minutes ago
Success
  1. main(){
  2. int i, j, k;
  3. for(i=5;i<15;i=i+5){
  4. printf("\n%4d",i*2);
  5. for(j=10;j>5;j=j-3){
  6. printf("%4d", i*j);
  7. for(k=8;k>=-3;k=k-5){
  8. printf("%4d",i+k+j);
  9. }
#xqYj6F C++ 6 minutes ago
Success
  1. //2014111161
  2. #include<iostream>
  3. #include<cmath>
  4. using namespace std;
  5. int main()
  6. {
  7. double Re1,Re2,V1,V2,a1,a2,b1,b2;
  8. cout<<"请假设两管道沿程阻力系数:";
  9. cin>>a1>>a2;
#SQ6XM3 C++14 1 minute ago
Success
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. string a[21][21];
  8. string b[21][21];
  9.  
#XavkVb C 6 minutes ago
Success
  1. #include <stdio.h>
  2. int main ()
  3. {
  4. /* variable definition: */
  5. int a, b, c;
  6. /* variable initialization */
  7. a = 10;
  8. b = 20;
  9. c = a + b;
#ir8Ddz C 6 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a = 10, b = 20;
  6. if (a=5)
  7. b--;
  8. printf("%d%d",a,b--);
  9. return 0;
#927zev PHP 6 minutes ago
Success
  1. <?php
  2.  
  3. // your code goes here
  4. $t = 710.60;
  5. $u = floor($t);
  6. $v = ceil($u*0.1)*10;
  7. if ($u % 10 == 0){
  8. echo "output = ".$u;
  9. } else {
#x4Dcht Java 6 minutes ago
Compilation error
  1. package p1;
  2. public class Sample
  3. {
  4. public static void main(String[] args)
  5. {
  6.  
  7. Employee emp = new Employee(1, "A"); System.out.println(emp.id); }
  8. }
  9. package p2;
#vPd7GK C++ 5.1 6 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. using System;
  5. using System.IO;
  6. using System.Security.Cryptography;
  7. using System.Text;
  8.  
  9. int main() {
#sQ3I94 Java 6 minutes ago
Compilation error
  1. class Superclass
  2. {
  3. static void display()
  4. {
  5. System.out.println("hello superclass");
  6. }
  7. }
  8. public class Subclass extends Superclass {
  9. static void display()
#XHLoyo C 6 minutes ago
Success
  1. #include <stdio.h>
  2. int main ()
  3. {
  4. /* variable definition: */
  5. int value1, value2, value3, value4, value5, value6, value7, value8, value9, value10, sum;
  6.  
  7. /* Initialize sum */
  8. sum = 0;
  9. printf("Enter an Integer for value1\n");
#r9uAB5 Java 19 seconds ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#l0ltfQ Java 6 minutes ago
Compilation error
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#9zpwl7 C 6 minutes ago
Compilation error
  1. // C code
  2. // This program will calculate the average of 3 exams for 5 students.
  3. // Developer: Faculty CMIS102
  4. // Date: Jan 31, XXXX
  5. #include <stdio.h>
  6. int main ()
  7. {
  8. /* variable definition: */
  9. char StudentName[100];
#TioNhj C++14 6 minutes ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4. long long n, res = 0;
  5. cin >> n;
  6. long long a[n][4];
  7. for (int i = 0; i < n; i++) {
  8. cin >> a[i][0] >> a[i][1] >> a[i][2] >> a[i][3];
  9. }
#iAcK01 C++14 6 minutes ago
Success
  1. #include <iostream>
  2. #include <sstream>
  3.  
  4. using namespace std;
  5.  
  6. class Stack
  7. {
  8. private :
  9. char *elements ;
#9xrM3M Python 6 minutes ago
Success
  1. #! /usr/bin/python
  2. print "Hello,!"
#2lhdec C++14 7 minutes ago
Success
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4. int main() {
  5. long long n, res = 0;
  6. cin >> n;
  7. long long a[n][4];
  8. for (int i = 0; i < n; i++) {
  9. cin >> a[i][0] >> a[i][1] >> a[i][2] >> a[i][3];
#AmbdKV C++14 2 minutes ago
Runtime error
  1. #include <iostream>
  2. #include <vector>
  3. typedef long long ll;
  4. using namespace std;
  5.  
  6. int main() {
  7. ll t,r,c,m,k,j,i,s,p;
  8. cin>>t;
  9. while(t--)
#cEFiLO C++ 5.1 7 minutes ago
Success
  1. #include <cmath>
  2. #include <cstdio>
  3. #include <vector>
  4. #include <iostream>
  5. #include <algorithm>
  6. #include <map>
  7. using namespace std;
  8.  
#U3bZrh C++14 7 minutes ago
Runtime error
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void acquisisci_matrice(FILE *, double**MAT, int, int);
  5. double somma_riga(double *vett, int);
  6.  
  7. int main(void)
  8. {
  9. FILE *fp;
#oIjT7i C 7 minutes ago
Success
  1. #include <stdio.h>
  2. int main()
  3. {
  4. char c[]="GATE2011";
  5. char *p=c;
  6. printf("%s",p+p[3]-p[1]);
  7. return 0;
  8. }