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...

#pwDwm6 C 31 minutes ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void Calculo()
  5. {
  6. int i, j, v[100], pos=0, neg=0;
  7. float perc1, perc2;
  8. printf("Para parar a armazenagem, basta digitar zero!");
  9. printf("\nInforme valores: ");
#y5dRuF C++ 30 minutes ago
Compilation error
  1. #include <iostream>
  2.  
  3. #include <string>
  4. #include <cstdlib>
  5.  
  6. using namespace std;
  7.  
  8. void clientes(int xop, int xcontador, int menos, string xCliente_DNI[], string xCliente_Nombres[], string xCliente_ApellidoPaterno[], string xCliente_ApellidoMaterno[], string xCliente_Edad[], string xCliente_Direccion[])
  9. {
#2jmx1p C++14 23 minutes ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. vector<int>g[110];
  5. bool vis[110];
  6. bool cor[110];
  7.  
  8. bool bicolor(int v, int a){
  9. cor[v]=a;
#ssyQdj C 32 minutes ago
Success
  1. #include<stdio.h>
  2.  
  3. int main() {
  4.  
  5. int rad;
  6. float PI = 3.14, area, ci;
  7.  
  8. printf("\nEnter radius of circle: ");
  9. scanf("%d", &rad);
#KIM1be Java 32 minutes ago
Compilation error
  1. import java.util.Scanner;
  2.  
  3. public class DavisStevenscanners
  4. {
  5. public static void main(String[] args)
  6. {
  7. Scanner stdIn = new Scanner(System.in);
  8. double manufacturer;
  9. double inRadius;
#kH2dcS Java 5 minutes 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. {
#7tcgMQ Java 32 minutes ago
Compilation error
  1. import java.util.Scanner;
  2.  
  3. public class DavisStevenscanners
  4. {
  5. public static void main(String[] args)
  6. {
  7. Scanner stdIn = new Scanner(System.in);
  8. double manufacturer;
  9. double inRadius;
#8qVCVu C++ 5.1 32 minutes ago
Compilation error
  1. if (num = 100)
  2.  
  3. cout << “num equals 100;
  4.  
  5. else
  6.  
  7. cout << “num is not 100;
#RYu6S1 Java 32 minutes ago
Compilation error
  1. package com.mkyong.core;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.Iterator;
  5. import java.util.List;
  6.  
  7. public class ArrayListLoopingExample {
  8. public static void main(String[] args) {
#GiIg4N C 32 minutes ago
Success
  1. #include<stdio.h>
  2.  
  3. int main() {
  4.  
  5. int rad;
  6. float PI = 3.14, area, ci;
  7.  
  8. printf("\nEnter radius of circle: ");
  9. scanf("%d", &rad);
#9WzFx5 C 8 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int i = 20;
  6.  
  7. while ( i > 0 )
  8. {
  9. printf("Pyrmaid push %d\n", i );
#pqX27S C 33 minutes ago
Runtime error
  1. #include <stdio.h>
  2. main (){
  3. int a,b;
  4. scanf("%d%d", a, b);
  5. if (a>b)
  6. printf("Yes");
  7. else
  8. printf("No");
  9. }
#UEGcCk Java 33 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. {
#RTW2Im C++14 33 minutes ago
Success
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. struct node{
  4. int data;
  5. node* left, *right;
  6. };
  7. node* newNode(int data){
  8. node* root = new node();
  9. root->data = data;
#knADkz C++ 30 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <assert.h>
  3. #include <typeinfo>
  4. #include "stdio.h"
  5.  
  6. using namespace std;
  7.  
  8. struct cheese
  9. {
#nHDHZs C 34 minutes ago
Success
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3.  
  4. struct node{
  5. int data;
  6. struct node *prev;
  7. struct node *next;
  8. };
#okPkMp C 15 minutes ago
Success
  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];
#BwomzX C 34 minutes ago
Success
  1. #include <stdio.h>
  2. main (){
  3. int a,b;
  4. scanf("%d%d", a, b);
  5. if (a>b)
  6. printf("Yes");
  7. else
  8. printf("No");
  9. }
#l9DVlH C 34 minutes ago
Success
  1. #include<stdio.h>
  2.  
  3. int main() {
  4. int a, b, sum;
  5.  
  6. printf("\nEnter two no: ");
  7. scanf("%d %d", &a, &b);
  8.  
  9. sum = a + b;
#0Rnnwf C 33 minutes ago
Success
  1. #include <stdio.h>
  2. #define TAM 3
  3. //ALGORITIMO DE ORDENCAÇÃO POR BOLHA (BUBBLE SORT)//
  4. int main(void) {
  5. float v1[TAM],v2[TAM],v3[2*TAM],aux;
  6. int i,j;
  7. for(i=0;i<TAM;i++){
  8. printf("Digite valores em ordem crescente para primeira sequencia(vetor).");
  9. scanf("%f",&v1[i]);
#1zNcwE C++ 34 minutes ago
Runtime error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. string traducir(int n)
  5. {
  6. switch(n)
  7. {
  8. case 0:
  9. return "cero";
#HKroLD C 6 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void){
  4. int input;
  5. scanf("%d",&input);
  6. for(int i=input; i>=1; i--){
  7. for(int j=input; j<=i; j++){
  8. printf("%d",j);
  9.  
#cRAM8B C++ 34 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. {
#1YC2Po Java 34 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. {
#T7VCw4 Java 27 minutes ago
Success
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. /* Name of the class has to be "Main" only if the class is public. */
  6. class Ideone
  7. {
  8. public static void main (String[] args) throws java.lang.Exception
  9. {
#DHO6ix Java 35 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. string traducir(int n)
  5. {
  6. switch(n)
  7. {
  8. case 0:
  9. return "cero";
#mD1WiJ C 35 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. void votosRep (int votos)
  4. {
  5. int i, v[5], r;
  6. char st[6];
  7.  
  8. for(r=0; r<5; r++)
  9. v[r]=0;
#Pv1aEj C 36 minutes ago
Runtime error
  1. #include<stdio.h>
  2. #include<string.h>
  3. #include<math.h>
  4.  
  5. int main()
  6. {
  7. char str[100];
  8. int i,sum,base;
#APfQM6 C 36 minutes ago
Runtime error
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #define TAM 9
  4. int main()
  5. {
  6. int vet[TAM], t, soma, contp, contn, i;
  7. float media, pp, pn;
  8. printf("Tamanho do vetor(ate 9):");
  9. scanf("%d", &t);
#xRSON2 Java 36 minutes ago
Compilation error
  1.  
  2. public enum Days {
  3. SUN("11 - 5"), MON("9 - 9"), TUE("9 - 9"), WED("9 - 9"), THU("9 - 9"), FRI("9 - 9"), SAT("9 - 6");
  4.  
  5. private String hours;
  6.  
  7. private Days(String h)
  8. {
  9. hours = h;