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

#Pcky8N C 4 seconds ago
Success
  1. #include <stdio.h>
  2. int main ()
  3. {
  4. int counter, count;
  5. float rate, price, total, sum, value;
  6. sum = 0;
  7. value = 0;
  8. price = 0;
  9. count = 0;
#7S3W59 Java 8 seconds ago
Compilation error
  1. public class AllPathsPrinter {
  2.  
  3. int [][] array;
  4. int rowCount;
  5. int colCount;
  6.  
  7.  
  8. public AllPathsPrinter(int [][]array){
  9.  
#Vzjgt6 C 9 seconds ago
Compilation error
  1. // C code
  2. // This program will provide options for a user to calculate the square
  3. // or cube of a positive Integer input by a user.
  4. // Developer: Alexis Aragon
  5. // Date: Jun 30, 2016
  6.  
  7. #include <stdio.h>
  8. int main ()
#WtL7Wp C 25 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. {
#FME5BY Java 37 seconds ago
Compilation error
  1. var objects = new Array(); // associative new Array: DOMDocument.elementId -> object
  2.  
  3. function onlyDigits(s) {
  4. for (i=0; i<s.length; i++) {
  5. if (s.charCodeAt(i)<48 || s.charCodeAt(i)>57) {
  6. return false;
  7. }
  8. }
  9. return true;
#b5SXv6 C++ 5.1 45 seconds ago
Compilation error
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. std::vector<double>::const_iterator lessThan( const std::vector<double> &v,
  5. double value )
  6. {
  7. auto first = v.begin();
  8.  
  9. while ( first != v.end() && !( *first < value ) ) ++first;
#gT83S2 C++14 50 seconds ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. float THR02T, THR03T, THR04T, THR05T, THR06T, THR07T, THR08T, THR09T;
  4. float ALTO, BAJO,PROMEDIOT;
  5. int T2E, T3E,T4E,T5E,T6E,T7E,T8E,T9E;
  6. int a;
  7. int main() {
  8. printf("t2\n");
  9. scanf("%f",&THR02T);
#Zv6V4m C++14 54 seconds ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Foo
  5. {
  6. public:
  7. int i = 0;
  8. };
#h6zM2G Java 37 seconds ago
Compilation error
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone {
#CZnIQf C++ 27 seconds ago
Runtime error
  1. #include <inttypes.h>
  2. #include <iostream>
  3.  
  4. int main(void) {
  5. // your code goes here
  6. uint64_t notificationFrameNumber;
  7. uint16_t satellite_id = 611;
  8. uint32_t superframe =0;
  9. uint16_t sfn_sf =0;
#66Kt7P C 1 minute ago
Success
  1. #include<stdio.h>
  2.  
  3. int main (void){
  4. int t;
  5. scanf("%d",&t);
  6. while(t--){
  7. long int n,min,a[10001];
  8. int i;
  9. scanf("%ld",&n);
#napAqI C 9 seconds ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("Enter: ");
  5. scanf int("%c", &letter1);
  6.  
  7. return 0;
  8. }
#7T2lUi Java 1 minute ago
Runtime error
  1. import java.util.*;
  2. import java.util.Date;
  3. import java.text.SimpleDateFormat;
  4. import java.util.Calendar;
  5. public class Main {
  6.  
  7. public static void main(String[] args) {
  8. Scanner scan = new Scanner(System.in);
  9.  
#eVGz1K Java 1 minute ago
Compilation error
  1. HashMap<String,String> props=new HashMap<String,String>();
  2. props.put("Key45","value45");
  3. props.put("Key24","value24");
  4. props.put("Key33","value33");
  5. Set s=props.keySet();
  6. Collections .sort(s);
#N0AklZ C 1 minute ago
Compilation error
  1.  
  2.  
  3. // C code
  4. // This program will provide options for a user to calculate the square
  5. // or cube of a positive Integer input by a user.
  6. // Developer: Faculty CMIS102
  7. // Date: Jan 31, XXXX
  8. #include <stdio.h>
  9. int main ()
#tGF3OJ Python 10 seconds ago
Success
  1. import math
  2. t=input()
  3. for i in range(t):
  4. n=input()
  5. c=[]
  6. a=raw_input()
  7. b=map(int,raw_input().split())
  8. for j in range(0,len(a)):
  9. if(a[j]=='1'):
#GUafzn C++ 4.3.2 2 minutes ago
Runtime error
  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<climits>
  4. int graph[100][100];
  5. using namespace std;
  6. int mindist(bool mark[],int dist[],int n)
  7. {
  8. int minval = INT_MAX;
  9. int index;
#tU9Zy2 C++14 2 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3. float THR02T, THR03T, THR04T, THR05T, THR06T, THR07T, THR08T, THR09T;
  4. float ALTO, BAJO,PROMEDIOT;
  5. int T2E, T3E,T4E,T5E,T6E,T7E,T8E,T9E;
  6. int a;
  7. int main() {
  8. printf("t2\n");
  9. scanf("%f",&THR02T)
#6lh9eY C 2 minutes ago
Success
  1. // C code
  2. // This program will provide options for a user to calculate the square
  3. // or cube of a positive Integer input by a user.
  4. // Developer: Alexis Aragon
  5. // Date: Jun 30, 2016
  6.  
  7. #include <stdio.h>
  8. int main ()
#FmDtGQ C 2 minutes ago
Compilation error
  1.  
  2.  
  3. // C code
  4. // This program will provide options for a user to calculate the square
  5. // or cube of a positive Integer input by a user.
  6. // Developer: Faculty CMIS102
  7. // Date: Jan 31, XXXX
  8. #include <stdio.h>
  9. int main ()
#2oo7tH Java 8 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. public static void main (String[] args) throws java.lang.Exception {
#jHKWuK C++14 2 minutes ago
Success
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. void func(int n){
  5. int count=0;
  6. for(int i=1;i<(n-1);i++){
  7. for(int j=i+1;j<n;j++){
  8. if((i^j)>n) count++;
  9. }
#46mIb9 Python 2 minutes ago
Runtime error
  1. import math
  2. t=input()
  3. for i in range(t):
  4. n=input()
  5. c=[]
  6. sum=0
  7. a=raw_input()
  8. b=map(int,raw_input().split())
  9. for j in range(0,len(a)):
#VyMTjH C 2 minutes ago
Compilation error
  1. #include <stdio.h>
  2. int P1(int *a){return *a+1;}
  3. int P2(int *b){return 1+(*b+=1);}
  4. int P3(int *c){return *c++;}
  5. void main() {
  6. int (*p[])(int *)={P1,P2,P3,P1,P2,P3};
  7. int i=0, t;
  8. while(1) {
  9. if((t=(*p[i]) (&i))==i)
#LhS790 C++ 5.1 2 minutes ago
Success
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. int main(){
  6. int num;
  7. int count;
  8. cout<<"Enter any number";
  9. cin>>num;
#8wksHA C 2 minutes ago
Success
  1. #include <stdio.h>
  2. #include <string.h>
  3. #define MAX_LENGTH 65536
  4.  
  5. #define NOT_IN_COMMENT 0
  6. #define SINGLE_COMMENT 1
  7. #define MULTI_COMMENT 2
  8. int status = NOT_IN_COMMENT; /* Are we in a comment? What type? */
  9. int in_string = 0; /* Are we inside of a string constant? */
#OFYH0Z C 3 minutes ago
Runtime error
  1. // C code
  2. // This program will provide options for a user to calculate the square
  3. // or cube of a positive Integer input by a user.
  4. // Developer: Alexis Aragon
  5. // Date: Jun 30, 2016
  6.  
  7. #include <stdio.h>
  8. int main ()
#Z5Qxv7 C 3 minutes ago
Compilation error
  1. #include <stdio.h>
  2. int P1(int *a){return *a+1;}
  3. int P2(int *b){return 1+(*b+=1);}
  4. int P3(int *c){return *c++;}
  5. void main() {
  6. int (*p[])(int *)={P1,P2,P3,P1,P2,P3};
  7. int i=0, t;
  8. while(1) {
  9. if((t=(*p[i]) (&i))==i)
#CaliLr Java 17 seconds ago
Compilation error
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone {
#TAtVN8 C++14 3 minutes ago
Success
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. float THR02T, THR03T, THR04T, THR05T, THR06T, THR07T, THR08T, THR09T;
  5. float ALTO, BAJO,PROMEDIOT;
  6. int T2E, T3E,T4E,T5E,T6E,T7E,T8E,T9E;
  7. int a;
  8. int main()
  9. {