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

#8uDaZd Java 2 hours ago
Compilation error
  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.  
  9. String number;
#UqXGNu Java 2 hours 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. {
#ge74Ej C 2 hours ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main(void)
  6. {
  7. float ExamValue;
  8. int StudentID;
  9. float sum;
#to2b8M C 1 hour ago
Success
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. int i,j;
  5. float c,d,e,f,g,h;
  6. i = 5; j = 2;
  7. d= 5.0; e = 2.0; f = 3.0;
  8.  
  9. c = i / j;
#TOENEe C 2 hours ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #define BOILING 212 /* degrees Fahrenheit */
  4. main(){
  5. float f_var; double d_var; long double l_d_var;
  6. int i;
  7. i = 0;
  8. printf("Fahrenheit to Centigrade\n");
  9. while(i <= BOILING){
#RO6sZo Java 2 hours ago
Compilation error
  1. https://w...content-available-to-author-only...s.com/shops/hd-watch-quot-love-friendship-quot-2016-movie-online-free-full
  2. https://w...content-available-to-author-only...s.com/shops/hd-watch-quot-the-neon-demon-quot-2016-movie-online-free-full
  3. https://w...content-available-to-author-only...s.com/shops/hd-watch-quot-the-jungle-book-quot-2016-movie-online-free-full
#mdS2xf Java 2 hours 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. {
#CsAMwq C 2 hours ago
Success
  1. // C code
  2. // This program will calculate the sum of 5 integers.
  3. // Developer: Faculty CMIS102
  4. // Date: Jun 26, 2016
  5. #include <stdio.h>
  6. int main ()
  7. {
  8. /* variable definition: */
  9. int value1,value2,value3,value4,value5,value6,value7,value8,value9,value10,sum;
#Kpl1eR Java 2 hours ago
Compilation error
  1. import java.util.*;
  2. public class Primes2 {
  3. public static void main(String[] args) {
  4. Integer[] primes = {2, 7, 5, 3};
  5. MySort ms = new MySort();
  6. Arrays.sort(primes, ms);
  7. for(Integer p2: primes)
  8. System.out.print(p2 + " ");
  9. }
#eJ6j5m C99 strict 6 minutes ago
Success
  1. #include <stdio.h>
  2. #include <string.h>
  3. int main(void) {
  4. char * pt, str[]="nome.c";
  5. pt = strrchr(str, '.');
  6. printf("%s\n%s\n", str, pt);
  7. if ((pt != NULL) && (strcmp(pt, ".c") == 0))
  8. printf("É .c\n");
  9. printf("Original: %s\n", str);
#BhNoMz C 2 hours ago
Runtime error
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main(void)
  6. {
  7. float ExamValue;
  8. int StudentID;
  9. float sum;
#mXuERe PHP 2 hours ago
Success
  1. <?php
  2. if(!function_exists('array_swap_assoc')) {
  3. function array_swap_assoc($key1, $key2, $array) {
  4. $newArray = array ();
  5. foreach ($array as $key => $value) {
  6. if ($key == $key1) {
  7. $newArray[$key2] = $array[$key2];
  8. } elseif ($key == $key2) {
  9. $newArray[$key1] = $array[$key1];
#aEKNBj PHP 1 hour ago
Success
  1. <?php
  2.  
  3. $anonNumber1 = mt_rand(1, 6);
  4. $anonNumber2 = mt_rand(1, 6);
  5.  
  6. $computerNumber1 = mt_rand(1, 6);
  7. $computerNumber2 = mt_rand(1, 6);
  8.  
  9. $anonSum = ($anonNumber1 + $anonNumber2);
#QAbpvV Java 2 hours ago
Compilation error
  1. namespace std;
  2. int i = 0, j = i++, k = --i;
  3. if(i > 0)
  4. j++;
  5. else
  6. k++;
  7. if(k == 0)
  8. i++;
  9. else if(k > 0)
#N8TYpB Haskell 2 hours ago
Runtime error
  1. import Control.Monad
  2.  
  3. fun (x:xs) = do
  4. print $ show (x:xs)
  5. fun [x + 1, x]
  6. return ()
  7.  
  8. main = do
  9. forever $ fun [1,2]
#B7yGou C++ 2 hours ago
Compilation error
  1. class Foo
  2. {
  3. private:
  4. int iX;
  5. public:
  6. Foo() { iX = 5; };
  7.  
  8. int getData()
  9. {
#MLljJz Java 2 hours ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. import java.text.SimpleDateFormat;
  7. import java.util.Date;
  8.  
  9. /* Name of the class has to be "Main" only if the class is public. */
#YF6UkA C 2 hours ago
Success
  1. #include <stdio.h>
  2. int main ()
  3. {
  4. /* variable definition: */
  5. int value1,value2,value3,value4,value5,sum;
  6.  
  7. /* Initialize sum */
  8. sum = 0;
  9. printf("Enter an Integer for value1\n");
#CRhsHS C++ 5.1 2 hours ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. auto wstring haystack = wstring(L"\\\\REGISTRY\\MACHINE\\SOFTWARE\\WOW6432Node\\Data\\0\\Path");
  6. auto wstring needle = wstring(L"\\\\WOW6432Node\\Data\\0\\Name");
  7. auto bool found = haystack.find(needle) != haystack.npos;
  8. cout << found << endl;
  9. return 0;
#rRse1H Java 2 hours ago
Compilation error
  1. package kz.aidana.contactbook;
  2.  
  3. import javax.servlet.annotation.WebServlet;
  4.  
  5. import com.vaadin.annotations.Theme;
  6. import com.vaadin.annotations.VaadinServletConfiguration;
  7. import com.vaadin.annotations.Widgetset;
  8. import com.vaadin.server.VaadinRequest;
  9. import com.vaadin.server.VaadinServlet;
#kTg8mH Java 2 hours ago
Compilation error
  1. Dim index As Integer = 5
  2. Do While index <= 10
  3. Debug.Write(index.ToString & " ")
  4. index += 2
  5. Loop
  6. Debug.WriteLine("")
#Xp7q0t C 2 hours ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a = 0;
  6. for (int i = 0; i < 256; ++i)
  7. {
  8. printf("%d, res = %d\n", i, (i ^ (1 << 5)) - 32);
  9. }
#3ytyX7 C 2 hours ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int myArray[][3] ={{8,2,4},{7,5,2}};
  6.  
  7. int i,j;
  8. for (i=0;i<2; ++i) {
  9. for (j=0;j<2;++j){
#aNUqlj C++14 2 hours ago
Success
  1. // friend functions
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. class Rectangle {
  6. int width, height;
  7. public:
  8. Rectangle() {}
  9. Rectangle (int x, int y) : width(x), height(y) {}
#rItDbe Python 2 hours ago
Runtime error
  1. import pymsgbox
  2.  
  3. strValor = pymsgbox.prompt('Digite o valor depositado:')
  4.  
  5. valorFinal = strValor + (strValor / 100 * 0.7)
  6.  
  7. pymsgbox.confirm("Parabéns, agora o novo valor é", strValor)# your code goes here
#RHqmgb C 2 hours ago
Success
  1. //CMIS102 Hands-On Lab 5
  2. //Exercise 4: What happens if you entered a value other than an integer?
  3. //Laura Sanglas
  4. //Date: June 26 2016
  5.  
  6. #include <stdio.h>
  7. int main ()
  8. {
  9. //Introducing a new variable, lastcount
#QGTzJO C 2 hours ago
Success
  1. #include <stdio.h>
  2. #include <stdbool.h>
  3.  
  4. #define MAX 4
  5.  
  6. int list[MAX] = {8, 4, 9, 1};
  7.  
  8. void display(){
  9. int i;
#KV7Sfc Java 1 hour 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. import java.util.Scanner;
  7. import javax.swing.JOptionPane;
  8.  
  9. /* Name of the class has to be "Main" only if the class is public. */
#AINlHj Java 2 hours 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. {
#FajrVR Java 2 hours ago
Success
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. import java.text.SimpleDateFormat;
  7. import java.util.Date;
  8.  
  9. /* Name of the class has to be "Main" only if the class is public. */