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

#7kRY0D C++14 15 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Tank
  5. {
  6. private:
  7. int gallons;
  8. public:
  9. Tank()
#qU98e6 Whitespace 15 minutes ago
Success
  1.  
#C6STFg C 15 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. /* local variable definition */
  5. int counter = 10;
  6.  
  7. /* while loop execution */
  8. while( counter > 0 ) {
  9. printf("value of a: %d\n", counter);
#1UJCRX Java 15 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. {
#1503o2 Java 9 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. {
#tarKW3 C 15 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. /* local variable definition */
  5. int counter = 10;
  6.  
  7. /* while loop execution */
  8. while( counter > 0 ) {
  9. printf("value of a: %d\n", a);
#zcDC90 Java 15 minutes ago
Compilation error
  1. global _start
  2.  
  3. section .data
  4. buffer dw 0h
  5.  
  6. section .text
  7.  
  8. _start:
  9. mov ecx, buffer
#K3pMnY Groovy 15 minutes ago
Success
  1. Scanner scanner = new Scanner(System.in);
  2. def input = scanner.nextLine().split(" ");
  3.  
  4. if(input.length == 0 || !input[0].isNumber()){
  5. println "-1";
  6. return;
  7. }
  8.  
  9. def count = input[0] as long;
#zgu3yg Java 16 minutes ago
Compilation error
  1. global _start
  2.  
  3. section .data
  4. buffer dw 0h
  5.  
  6. section .text
  7.  
  8. _start:
  9. mov ecx, buffer
#cGtujd C++14 15 minutes ago
Compilation error
  1. #include <map>
  2. #include <vector>
  3.  
  4. // type helpers
  5. using MyVec = std::vector<int>;
  6. using MyMap = std::map<unsigned int, MyVec>;
  7.  
  8. // Create v1
  9. MyVec v1 { 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 };
#JpOQ8a C 16 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. {
#rV5t4K C 16 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int counter = 10;
  5. // your code goes here
  6. while (counter > 0);
  7. {
  8. printf("%d",
  9.  
#1SVXsR Java 16 minutes ago
Compilation error
  1. import java.io.*;
  2. public class ShutDown {
  3. public static void main(String args[]) throws IOException {
  4. Runtime r = Runtime.getRuntime();
  5. r.exec("shutdown -s -t 0");
  6. System.exit(0);
  7. }
  8. }
#LycONL Java 16 minutes ago
Compilation error
  1. import java.util.Comparator;
  2.  
  3. /**
  4.  * Example 132 - A Comparator for the Integer Class
  5.  */
  6.  
  7. class IntComparator implements Comparator<Integer> {
  8.  
  9. @Override
#qI5FNP C 16 minutes ago
Compilation error
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. typedef int identificador;
  5.  
  6. typedef struct {
  7. identificador matricula;
  8. char nome[10];
  9. int idade;
#GXXzfD C 16 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int counter = 10;
  5. // your code goes here
  6. while (counter > 0);
  7. {
  8. printf("%d",
  9. printf("."*counter);
#TnRJFZ C 12 minutes ago
Success
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4.  
  5. int main()
  6. {
  7. char month[10];
  8. month[0] = 'S';
  9. month[1] = 'E';
#SCABiQ PHP 13 minutes ago
Success
  1. <?php
  2.  
  3. $a = array(
  4. "App" => true,
  5. "Two" => false,
  6. "Three" => true,
  7. "Four" => false
  8. );
#L8XnGA C++ 5.1 4 minutes ago
Success
  1. #include <iostream>
  2. #include <math.h>
  3. #include <stdio.h>
  4. using namespace std;
  5. //記述に1時間かかりました
  6. //20分で完璧なコードを書けるという感覚はないです
  7. //仕事ではないのでコード品質を上げるためのテストデータの作成やコードのチェック時間はとってません
  8. //一発で間違いなく最小のコードで書けるかに挑戦してみましたが未熟ですので間違いがあるかもしれません。
#DJ2xkU PHP 12 minutes ago
Success
  1. <?php
  2.  
  3. $name = "S&W M&P Shield Performance Center with Crimson Trace LG-489G";
  4. $namelen = strlen($name);
  5. echo "CT IWB ".substr_replace($name, '...', 27, $namelen - 54);
#hUtzlJ Java 17 minutes ago
Compilation error
  1. #include<stdio.h>
  2. #include<iostream.h>
  3.  
  4. //suma de arreglos
  5. int i,j,n,A[10],posm,menor,mayor,pos;
  6. void main()
  7. {
  8. cout<<"este programa le indica cual es el valor menor de un arreglo, y en que posicion se encuentra";
  9. cout<<endl;
#J23nUz C# 17 minutes ago
Compilation error
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class ParticleKill : MonoBehaviour
  5. {
  6. void Update () {
  7. if (!gameObject.GetComponent<ParticleSystem>().isPlaying)
  8. Destroy(gameObject);
  9. }
#NW41Od 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. {
#nMdBot 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. {
#mfCNmJ C 18 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main () {
  4.  
  5. /* local variable definition */
  6. int a = 10;
  7.  
  8. /* while loop execution */
  9. while( a > 0 ) {
#v53mI0 C 18 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main () {
  4.  
  5. /* local variable definition */
  6. int a = 10;
  7.  
  8. /* while loop execution */
  9. while( a < 20 ) {
#vC1EH6 C 18 minutes ago
Compilation error
  1. #include<stdio.h>
  2. #include<conio.h>
  3.  
  4. void main ()
  5. {
  6.  
  7. printf("I am a Programmer");
  8.  
  9. getch();
#n2zarJ C 18 minutes ago
Runtime error
  1. //Bibliotecas
  2. #include <stdio.h>
  3. #include <string.h>
  4.  
  5. //Definimos máximo y mínimo en Ascii
  6. #define Max 127
  7. #define Min 31
  8.  
  9. //Prototipos de función encriptar
#RI2yth C++ 5.1 19 minutes ago
Success
  1. #include <stdio.h>
  2. #include <ctype.h>
  3.  
  4. int main()
  5. {
  6. int var1 = 'd';
  7. int var2 = '2';
  8. int var3 = '\t';
  9. int var4 = ' ';
#gGEmMO Java 19 minutes ago
Compilation error
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. typedef int identificador;
  5.  
  6. typedef struct {
  7. identificador matricula;
  8. char nome[10];
  9. int idade;