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

#C4XuCP C 1 hour ago
Success
  1. #include <stdio.h>
  2.  
  3. int n_faktorial(int aa){
  4. int vysledek;
  5. vysledek = aa;
  6.  
  7. int i;
  8. for(i=aa; i>=2; i--){
  9. vysledek = vysledek * (i-1);
#cc9ejg Java 1 hour ago
Compilation error
  1. class A {
  2. public:
  3. void setValue(float newValue){ a = newValue};
  4. };
#8ICHmy C++ 4.3.2 1 hour ago
Runtime error
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define read() freopen("input.txt","r",stdin)
  5. #define INF ((1<<31)-1)
  6. #define EPS (1e-9)
  7. #define PI (2*acos(0.0))
  8. #define ll long long
  9. #define ull ll
#tgfMdv Java 1 hour ago
Compilation error
  1. import java.util.*;
  2.  
  3. public class HashMapDemo {
  4.  
  5. public static void main(String args[]) {
  6. // Create a hash map
  7. HashMap hm = new HashMap();
  8. // Put elements to the map
  9. hm.put("Zara", new Double(3434.34));
#nCErfr C++14 32 seconds ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes her
  6. /*
  7. int x,y,p=2;
  8. cin>>x>>y; // 100 - 2
  9. cout << x <<"/"<< y << "\t";
#neS5TG C 1 hour ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int a, b, c;
  6.  
  7. scanf("%d %d" ,&a, &b);
  8. c=a+b;
  9. printf("%d +%d=%d" ,a,b,c);
#4ismSF C 1 hour ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a,b,c;
  5.  
  6. scanf("%d %d",&a, &b);
  7. c=a+b;
  8. printf ("%d + %d=%d ",a,b,c);
  9. return 0;
#ubQbcN C 1 hour ago
Success
  1. #include <stdio.h>
  2.  
  3. int n_faktorial(int aa){
  4. int vysledek;
  5. vysledek = aa;
  6.  
  7. int i;
  8. for(i=aa; i>=2; i--){
  9. vysledek = vysledek * (i-1);
#wiY5pR Java 2 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. {
#bmERFb C 1 hour ago
Success
  1. #include <stdio.h>
  2.  
  3. int n_faktorial(int aa){
  4. int vysledek;
  5. vysledek = aa;
  6.  
  7. int i;
  8. for(i=aa; i>=2; i--){
  9. vysledek = vysledek * (i-1);
#wqsF3q Java 41 minutes ago
Success
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. // Генерация последовательности с помощью MersenneTwister по определенному seed
  6. class SequenceCreation {
  7.  
  8. // вход в нашу программу
  9. public static void main(String[] args) throws java.lang.Exception {
#QN1ca3 Scala 1 hour ago
Success
  1. object Main extends App {
  2. def repeat [X] (x:X, n:Int) : List[X] = {
  3. if (n == 0)
  4. Nil
  5. x :: repeat (x, n - 1)
  6. }
  7.  
  8. val xs:List[(Char,Int)] = List (('a', 2), ('b', 4), ('c', 8))
#E8Hp4h C++ 1 hour ago
Compilation error
  1.  
  2. //***********************************************
  3. // PROJECT HOTEL-MANAGEMENT
  4. //***********************************************
  5.  
  6.  
  7. //****************************
  8. // INCLUDED HEADER FILES
  9. //****************************
#vP2gQC Java 1 hour 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. {
#9MtBbj C 1 hour ago
Compilation error
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main() {
  6. unsigned int i; //counter
  7. unsigned int esum=12, osum=15, product=2, cube=2, cube2=2, j=0;
  8. printf("\n FALL 2014 09 18 2014: Subbarao Wunnava TEST 1\n");
  9. printf("\n initial values esum,osum,product,square,cube,cube2: %2u %2u %2u %2u %2u %2u \n\n", esum,osum,product,square,cube,cube2);
#aif4kn Java 40 minutes ago
Compilation error
  1. import java.util.Base64;
  2. public class ideone {
  3.  
  4. byte[] bytes = "Hello, World!".getBytes("UTF-8");
  5. String encoded = Base64.getEncoder().encodeToString(bytes);
  6. byte[] decoded = Base64.getDecoder().decode(encoded);
  7. }
#8NrLyJ C 1 hour ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. short var = 0b0000000000001010;
  5. var = var & ~(1 << 1 | 1 << 3);
  6. var = var | (1 << 12 | 1 << 14);
  7. printf("%d", var);
  8. return 0;
  9. }
#sOnnaB C++ 1 hour ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6.  
  7. cout << "Greets, peeps!";
  8.  
  9. cout << "Please type your name her: ";
#vtNhMw Scala 1 hour ago
Compilation error
  1. def repeat [X] (x:X, n:Int) : List[X] = {
  2. if (n == 0)
  3. Nil
  4. x :: repeat (x, n - 1)
  5. }
  6.  
  7. val xs:List[(Char,Int)] = List (('a', 2), ('b', 4), ('c', 8))
#9YHw9p C 1 hour ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5.  
  6. int a, b ,c;
  7.  
  8. scanf("%d %d", &a , &b);
  9. c=a+b;
#zARw4B C++ 5.1 1 hour ago
Success
  1. #include<string>
  2. #include<iostream>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. string name;
  8. cin >> name;
  9. string message("hello world");
#dYYf5M Java7 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.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#UEoz7A Java 59 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. class CC21{
  8. public static void main(String[] args){
  9.  
#kDgAf0 C 1 hour ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. double a, b, c;
  5. printf ("Inserire tre numeri:");
  6. scanf ("%lf, %lf, %lf", &a, &b, &c);
  7. if ((a==b) && (b==c))
  8. printf ("I tre numeri sono uguali.");
  9. else if ((a>b) && (b>c))
#7CaEVn C 1 hour ago
Success
  1. #include <stdio.h>
  2.  
  3. extern void print(int* i, int s);
  4. void print(int* array, int size);
  5.  
  6. int main(void) {
  7. // your code goes here
  8. return 0;
  9. }
#YLHQCU C++14 1 hour ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int cases, num, count;
  6. cin>>cases;
  7.  
  8. for(int i=0; i<cases; i++){
  9. cin>>num;
#5UEnuq C 1 hour ago
Success
  1. #include <stdio.h>
  2.  
  3. int n_faktorial(int aa){
  4. int vysledek;
  5. vysledek = aa;
  6.  
  7. int i;
  8. for(i=aa; i>=2; i--){
  9. vysledek = vysledek * (i-1);
#1oogCX Scheme (chicken) 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.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#VsGEuo C++ 1 hour ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. cout << "Hello, CS 1!";
  7. return 0;
  8. }
#JwzRex C 1 hour ago
Success
  1. #include <stdio.h>
  2.  
  3. int n_faktorial(int aa){
  4. int vysledek;
  5. vysledek = aa;
  6.  
  7. int i;
  8. for(i=aa; i>=2; i--){
  9. vysledek = vysledek * (i-1);