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

#8AFIYY Java 15 minutes ago
Success
  1. class Ola {
  2.  
  3. public static void main(String[] args){
  4.  
  5. System.out.println("Ola");
  6. }
  7. }
#9nQrKY Python 3 16 minutes ago
Success
  1. def sleep_in(weekday, vacation):
  2. if not weekday or vacation:
  3. return True
  4. else:
  5. return False
  6.  
  7.  
  8. sleep_in(True, True)
#Q4rAIB Lua 16 minutes ago
Compilation error
  1. -- BuilderController.lua
  2.  
  3. local BuilderController = class (
  4. function(self, parent, component)
  5. self.parent = parent
  6. self.component = component
  7.  
  8. self.mouseDown = false
  9. self.rightMouseDown = false
#wXC6dw Java7 16 minutes ago
Compilation error
  1. double horas_trabajadas, tarifa, horas_extras,
  2. INICIO
  3. LEER hora trabajadas
  4. LEER tarifa
  5. SI horas trabajadas <=40 entonces
  6. salario < -horas trabajadas * tarifa
  7. SI NO
  8. tarifa_extra <- tarifa + 0.50 + tarifa
  9. horas_extras <- horas trabajadas -40
#doQrRv C++14 16 minutes ago
Compilation error
  1. // switch box routing
  2.  
  3. #include <iostream.h>
  4. #include "stack.h"
  5.  
  6. bool CheckBox(int net[], int n)
  7. {// Determine whether the switch box is routable.
  8. Stack<int> *s = new Stack<int> (n);
#gTno8M Java 15 minutes ago
Success
  1. //bubble sort
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. class Ideone {
  8. public static void main (String[] args) throws java.lang.Exception {
  9. int [] arr = {65,43,32,21,12,34,45,76,99,86,33,66,22,88,10};
#YDamgO Perl 16 minutes ago
Success
  1. $first=<stdin>;
  2. chomp$first;
  3. $new=ucfirst($first);
  4. $last=<stdin>;
  5. chomp$last;
  6. $new2=ucfirst($last);
  7. $full="$first","$last";
  8. $len=length($full);
  9. print"the full name is : $full\n";
#tMWBWE C 16 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. struct bigStr {
  4. char *str;
  5. int size;
  6. } first, second, third;
  7.  
  8. int main(void) {
  9. // your code goes here
#nJxRSY C 17 minutes ago
Runtime error
  1. #include <fcntl.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <string.h>
  5. #include <unistd.h>
  6. #ifndef NULL
  7. #define NULL ((void *) 0)
  8. #endif
#Do7sze C 16 minutes ago
Compilation error
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main();
  6. float pro
  7. float div
  8. float modulo
  9. {
#oISg3o C 17 minutes ago
Runtime error
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int n=13;
  5. int ans=0;
  6. for(int d=1;d<n;d++){
  7. if(n%d==1){
  8. ans+=d;
  9. }
#yetPAl C 17 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. printf("teu cu");
  5. return 0;
  6. }
#KmuB59 Java 17 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. {
#s54tXe Java 17 minutes ago
Success
  1. class crc
  2. { public static byte crc8 (String stringData)
  3. {
  4. int len = stringData.length();
  5. int i = 0;
  6. byte crc = 0x00;
  7. while (len-- > 0) {
  8. byte extract = (byte) stringData.charAt(i++);
  9. for (byte tempI = 8; tempI != 0; tempI--) {
#Agi8s1 Java 17 minutes ago
Compilation error
  1.  
  2. ENTEROS horas_trabajadas, tarifa, horas_extras,
  3. INICIO
  4. LEER hora trabajadas
  5. LEER tarifa
  6. SI horas trabajadas <=40 entonces
  7. salario < -horas trabajadas * tarifa
  8. SI NO
  9. tarifa_extra <- tarifa + 0.50 + tarifa
#626FTz Java 17 minutes ago
Compilation error
  1. public static byte crc8 (String stringData)
  2. {
  3. int len = stringData.length();
  4. int i = 0;
  5. byte crc = 0x00;
  6. while (len-- > 0) {
  7. byte extract = (byte) stringData.charAt(i++);
  8. for (byte tempI = 8; tempI != 0; tempI--) {
  9. byte sum = (byte) ((crc & 0xFF) ^ (extract & 0xFF));
#ZC9tl2 C 18 minutes ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main ()
  5. {
  6. float a,b;
  7. char c;
  8. printf("CALCULADORA");
  9. printf("\nDigite o primeiro numero: ");
#iXt9e0 Python 3 18 minutes ago
Compilation error
  1. # your code goes here
  2. a = 2
  3. b = 3
  4.  
  5. define add(a, b):
  6. return a+b
  7.  
  8. print add(a, b)
#JgEz0E Java 18 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 main
  9. {
#NAMojX Java 18 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. {
#bWMpgY Python 3 13 minutes ago
Runtime error
  1. # your code goes here
  2. import unittest
  3.  
  4. class CheckDigiter(object):
  5. def is_error_length(self, s):
  6. return False
  7.  
  8. class CheckDigiterTestCase(unittest.TestCase):
  9. def setUp(self):
#NpMxx2 Java 18 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. {
#sPb1jC Java 18 minutes ago
Compilation error
  1. public class crc
  2. { public static byte crc8 (String stringData)
  3. {
  4. int len = stringData.length();
  5. int i = 0;
  6. byte crc = 0x00;
  7. while (len-- > 0) {
  8. byte extract = (byte) stringData.charAt(i++);
  9. for (byte tempI = 8; tempI != 0; tempI--) {
#cSfoYR Java 18 minutes ago
Compilation error
  1.  
  2. ENTEROS horas_trabajadas, tarifa, horas_extras,
  3. INICIO
  4. LEER hora trabajadas
  5. LEER tarifa
  6. SI horas trabajadas <=40 entonces
  7. salario < -horas trabajadas * tarifa
  8. SI NO
  9. tarifa_extra <- tarifa + 0.50 + tarifa
#EC1Ry8 C 18 minutes ago
Time limit exceeded
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. main()
  5. {
  6. int A[4][4],B[4][4],C[4][4],D[4][4],E[4][4];
  7. int i,j,k;
  8.  
  9. srand (time(NULL));
#sO4qya Java 18 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. {
#Ib0Gdu C 18 minutes ago
Runtime error
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int n;
  5. int ans=0;
  6. scanf("%d",&n);
  7. for(int d=1;d<n;d++){
  8. if(n%d==1){
  9. ans+=d;
#Td9JYu C++14 17 minutes ago
Success
  1. #include <iostream>
  2. #include<vector>
  3. using namespace std;
  4.  
  5. int main() {
  6. vector<int>v{1,2};
  7. for(int&i:v)
  8. cout<<i;// your code goes here
  9. return 0;// your code goes here
#o3LDkK C 19 minutes ago
Time limit exceeded
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. main()
  5. {
  6. int A[4][4],B[4][4],C[4][4],D[4][4],E[4][4];
  7. int i,j,k;
  8.  
  9. srand (time(NULL));
#9nKusf Perl 19 minutes ago
Runtime error
  1. $first=<stdin>;
  2. chomp$first;
  3. $new=ucfirst($first);
  4. $last=<stdin>;
  5. chomp$last;
  6. $new2=ucfirst($last);
  7. $full="$first""$last";
  8. $len=length($full);
  9. print"the full name is : $full\n";