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

#4uPrsk C 27 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x=4, y=3, z=2;
  5. y = ++x +1;
  6. z = 1 - x-- ;
  7. printf ("X=%d Y=%d Z=%d", x, y, z);
  8.  
  9. return 0;
#mZ0qAF C 27 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int loop_down_to_zero(int i);
  4. int loop_up_to_int(int i);
  5.  
  6. int main(int argc, char* argv[])
  7. {
  8. int i;
  9. printf("Please enter in a positive int: %d");
#LbpQMD C 26 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a=4;
  6. int b;
  7. b='c'/2 || (a=3);
  8. a=6;
  9. printf("%d",a);
#JF0Mxw C 26 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3.  
  4. int main(void) {
  5. printf("hello");
  6. getch();
  7. return 0;
  8. }
#V0VaXj C++ 5.1 27 minutes ago
Success
  1. #include <iostream>
  2.  
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main()
  8.  
  9. {
#1E1RiR C 28 minutes ago
Compilation error
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <ctype.h>
  4. #include <string.h> // alternate (*temp).data = x;
  5. // gcc -o main -lm -std=c99 -Wall -pedantic main.c
  6.  
  7. typedef struct Node {
  8. char *data;
  9. int count;
#B6dsN9 C 28 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a=5, b=5, c=4;
  5. c += a==b;
  6. printf("A=%d B=%d C=%d", a, b, c);
  7.  
  8. return 0;
  9. }
#kmY6eU C++ 27 minutes ago
Success
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <iostream>
  4.  
  5.  
  6. int main()
  7. {
  8. char buff[50];
  9. char format[50] = "%";
#kAgzPn C 28 minutes ago
Success
  1. int main ()
  2. {
  3. /* variable definition: */
  4. int count, value, sum;
  5. double avg;
  6. /* Initialize */
  7. count = 0;
  8. sum = 0;
  9. avg = 0.0;
#sNeS58 C# 2 minutes ago
Success
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Test
  5. {
  6. static void Main(string[] args)
  7. {
  8. var numbers = Enumerable.Range(1, 101);
  9. var result = numbers.Select(i => FizzBuzz(i));
#9t1SwM C 19 minutes ago
Runtime error
  1. #include <stdio.h>
  2.  
  3. #define call(x,y) x##y
  4. void main()
  5. {
  6. int x=5,y=10,xy=50;
  7. printf("%d",xy+call(x,y));
  8. }
#VYNmF3 C 24 minutes ago
Success
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int x=10;
  5. float y=3.0;
  6. if(x==y)
  7. printf("%d %d",x,y);
  8. return 0;
  9. }
#a23JvN C 22 minutes ago
Compilation error
  1. #include <stdio.h>
  2. main()
  3. {
  4. int i, j, k, max;
  5. scanf("%d",&i);
  6. scanf("%d",&j);
  7. scanf("%d",&k);
  8. if(i > j)
  9. max = i;
#aoQRHC Perl 26 minutes ago
Runtime error
  1. #!/usr/bin/perl
  2. # your code goes here
  3. use strict;
  4. @array=<STDIN>;
  5. $s=@array;
  6. print "size",$s,"\n";
  7. print @array;
#60gLDv C++ 5.1 28 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout<<"hello manjeet";
  6. getch();
  7. return 0;
  8. }
#l6fCLQ Java 6 minutes ago
Compilation error
  1.  
  2. class Example1 {
  3. public static void main(String args[]) {
  4. int num1, num2;
  5. try {
  6. // Try block to handle code that may cause exception
  7. int arr[]={1,2,3};
  8. num1 = 0;
  9. num2 = 62 / num1;
#iW8ux5 PHP 2 minutes ago
Success
  1. <?php
  2.  
  3. // your code goes here
  4.  
  5. var_dump((boolean)filter_input(INPUT_POST, 'show_del_data', FILTER_VALIDATE_BOOLEAN));
#NEtlBW C++ 5.1 28 minutes ago
Compilation error
  1. #include <iostream>
  2.  
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main()
  8.  
  9. {
#TeO2fv Java 28 minutes ago
Compilation error
  1. // Area of a triangle program in c++
  2. # include <iostream>
  3. using namespce std;
  4. int main ()
  5. {
  6. int a, b, c;
  7. a=20;
  8. b=40;
  9. c=axb;
#DReqx3 Python 28 minutes ago
Runtime error
  1. import numpy as np
  2. import cv2
  3.  
  4. cap = cv2.VideoCapture(0)
  5.  
  6. while(True):
  7. # Capture frame-by-frame
  8. ret, frame = cap.read()
#crYfLo Java 29 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. {
#BWSka1 C 25 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.  
  5. int lastNum= 0;
  6. int currNum = 0;
  7.  
  8.  
  9. printf("Begin entering numbers with a space between them: ");
#33vGtl Java 29 minutes ago
Compilation error
  1. import numpy as np
  2. import cv2
  3.  
  4. cap = cv2.VideoCapture(0)
  5.  
  6. while(True):
  7. # Capture frame-by-frame
  8. ret, frame = cap.read()
#mDpt9C Python 29 minutes ago
Success
  1. #!/usr/bin/env python
  2.  
  3. def print_ages(kids_ages):
  4. """ Print kids ages, ignore 0 that are towards the end in the kids_ages array """
  5. for age in kids_ages:
  6. if age == 0: break
  7. print age,
  8. print
#iDopgb Java 27 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. {
#Gpv2XP C++ 5.1 29 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. cout<<"hello manjeet ";
  7. return 0;
  8. }
#HxjA58 Perl 6 29 minutes ago
Runtime error
  1. #!/usr/bin/perl
  2. # your code goes here
  3. $result=sprintf("%010d%010d", 96605363, 96605462);
  4. printf($result);
#ImCyOF Java 16 minutes ago
Success
  1. /* CS 111A Problem Set 1, Renee Liu */
  2.  
  3. class Ideone
  4. {
  5. public static void main (String[] args)
  6. {
  7. // P1.5 (p.25) This displays my name inside a box.
  8. System.out.println("_______");
  9. System.out.println("| Renee |");
#1gZWTE Ada 6 minutes ago
Success
  1. With Ada.Text_IO; Use Ada.Text_IO;
  2. With Ada.Integer_Text_IO; Use Ada.Integer_Text_IO;
  3.  
  4. procedure Program is
  5. fah,cent:FLOAT;
  6. package float_io is new Ada.Text_IO.FLOAT_IO(FLOAT);
  7. use float_io;
  8. begin
  9. for index in 212..220 loop
#2cGClw C++ 5.1 24 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. /* 印出1~10000的完全數*/
  6. int i,j;
  7. for(i=1;i<=10000;i++){
  8. int sum=0;
  9. for(j=1;j<i;j++)