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

#MsgCCi Java 1 second ago
Waiting for compilation
  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. {
#97rnR1 Java 7 seconds ago
Success
  1. class HelloWorld {
  2. public static void main(String[] args) {
  3. System.out.println("Hello, World!");
  4. System.out.println(args);
  5. }
  6. }
#h32IlW C++ 5.1 9 seconds ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Widget
  5. {
  6. public:
  7. float num;
  8.  
  9. float widget(int count)
#dnxmQQ C 12 seconds ago
Runtime error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5.  
  6. FILE *fp;
  7. char str[20];
  8. fp=fopen("abc.txt","w");
  9. fputs("i am a boy\r\n",fp);
#S6sykp C 39 seconds ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("Hello World!"\n);
  5. return 0;
  6. }
#t6JmWn C 20 seconds ago
Success
  1. #include <stdio.h>
  2.  
  3. int fun(int *p, int *q)
  4. {
  5. p=q;
  6. printf("%d%d%d%d", p, *p,q,*q);
  7. *p=5;
  8. printf("%d%d%d%d", p, *p,q,*q);
  9. return;
#mHJzCe C 41 seconds ago
Runtime error
  1. #include <stdio.h>
  2.  
  3. void fun();
  4. int i = 10;
  5. void main()
  6. {
  7. int i =20;
  8. printf("%d",i);
  9. i = 30;
#O0IYhr C++14 42 seconds ago
Success
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <vector>
  4. using namespace std;
  5.  
  6. // Function to sort arr[] of size n using bucket sort
  7. void bucketSort(float arr[], int n)
  8. {
  9. // 1) Create n empty buckets
#EBzFw8 C# 47 seconds ago
Compilation error
  1. using System;
  2. using System.Linq
  3. namespace check1
  4. {
  5. public class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int[] nums = { 16, 9, 25};
#jdcOQC Java7 12 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. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#Wflu5a Java 58 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. /* Name of the class has to be "Main" only if the class is public. */
  8. class Test {
  9. public static void main(String args[]) {
#4osbV0 Java 1 minute ago
Compilation error
  1. http://w...content-available-to-author-only...c.org/xn/detail/2449396:BlogPost:3143643
#u4ZFjU Java 1 minute 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 string
#RxV97r C 1 minute ago
Compilation error
  1. #include<stdio.h>
  2. int main()
  3.  
  4. {
  5. int i=2,j=3,k;
  6. k=((float)j%i);
  7. printf("%d",k);
  8. return 0;
  9. }
#3DGpPu C 50 seconds ago
Runtime error
  1. #include <stdio.h>
  2. void main()
  3. {
  4. FILE *fp;
  5. char str[20];
  6. fp=fopen("abc.txt","w");
  7. fputs("i am a boy\r\n",fp);
  8. fclose(fp);
  9. fp=fopen("abc.txt","r");
#8oviUe Java 1 minute 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 Test {
  8. public static void main(String[] args) {
  9. String name="vikaramaditya"; System.out.println(name.codePointAt(2)+name.charAt(3)); }}
#NoVB3w Java7 33 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. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#Kzk5JW Java 1 minute ago
Success
  1. class HelloWorld {
  2. public static void main(String[] args) {
  3. System.out.println("Helllo, World!");
  4. }
  5. }
#1IYxpC Java 1 minute ago
Compilation error
  1. #include<stdio.h>
  2. int main(){
  3. int x=10,j;
  4. j= x++ + ++x + ++x +x;
  5. printf("%d %d",j,x);
  6. return 0;
  7. }
#fbb8HG Lua 1 minute ago
Success
  1.  
  2. local script = string.dump(
  3. function()
  4. --Content
  5. print("Camouflaging Done.")
  6. end)
  7.  
  8. buff = ""
  9. for v = 1, string.len(script) do
#BgK3uD Java 1 minute 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. {
#KtbbQo 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. {
#WFkAsy Java 22 seconds 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. {
#trd3Ml C++ 5.1 2 minutes ago
Compilation error
  1. #include <stdio.h>
  2. #include <conio.h>
  3. //#include <alloc.h>
  4. #include<iostream>
  5. #include<stdlib.h>
  6. #define MAX1 3
  7. #define MAX2 3
  8.  
  9. /* structure for col headnode */
#BXbrQz 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. {
#V7wlMo C 2 minutes ago
Success
  1. #include<stdio.h>
  2. int main()
  3.  
  4. {
  5. int i=2,j=3,k;
  6. k=j%i;
  7. printf("%d",k);
  8. return 0;
  9. }
#FQ1Uwx Java 24 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. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#Nb0NU1 C# 1 minute ago
Compilation error
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int i =0;
  8.  
  9. if(i){
#Bl2lH2 Python 3 1 minute ago
Compilation error
  1. pip install nltk
#HCDa0L C 2 minutes ago
Runtime error
  1. #include <stdio.h>
  2.  
  3. int main ()
  4. {
  5. FILE *fp;
  6. int ch;
  7.  
  8. fp = fopen("file.txt", "w");
  9. for( ch = 33 ; ch <= 100; ch++ )