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

#wrld2F C++ 5.1 17 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3. int main(void) {
  4. int i = 2147483647;
  5. short s = i;
  6.  
  7. if(i == s)
  8. cout << "equal" << endl;
  9. else
#9JzGud C++ 5.1 6 minutes ago
Success
  1. #include <cstdio>
  2. #include <cmath>
  3.  
  4. char a[1005][1005];
  5. int b[1005];
  6. int c,d,e,f,g,h,ans,n,m,k;
  7.  
  8. int main()
  9. {
#jqduly 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. {
#lK89DH Java7 17 minutes ago
Compilation error
  1. You should use the statndard input/output
  2.  
  3. in order to receive a score properly.
  4.  
  5. Do not use file input and output
  6.  
  7. Please be very careful.
  8. */
#y5WARF C++14 17 minutes ago
Compilation error
  1. #include <iostream>
  2. #include "math.h"
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.  
  8. vector <string> words;
  9. for (string temp; cin >> temp;)
#s9qEs8 Java 18 minutes ago
Compilation error
  1. class Gen<T>
  2. {
  3. Tobj;
  4. Gen(T o)
  5. {
  6. obj=o;
  7. }
  8. T get()
  9. {
#ULdhUV Java 12 minutes ago
Success
  1. // Java program to construct BST from given preorder traversal
  2.  
  3. // A binary tree node
  4. class Node {
  5.  
  6. int data;
  7. Node left, right;
  8.  
  9. Node(int d) {
#ORPFuI C++ 5.1 6 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n,i,count;
  6.  
  7. while(1){
  8. cin>>n;
  9. count=0;
#uoDbn1 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. {
#d1jy3x Java 18 minutes ago
Compilation error
  1. class SuperClass{
  2. static void display(){
  3. System.out.println("hello super class");
  4. }
  5.  
  6. }
  7. public class SubClass extends SuperClass{
  8. static void display(){
  9. System.out.println("hello sub class");
#0RTj6t C++ 5.1 18 minutes ago
Compilation error
  1. #include <iostream>
  2. using namespace std;
  3. int main(void) {
  4. int i = 2147483647;
  5. short s = i;
  6.  
  7. if(i == s)
  8. cout << "equal" << endl;
  9. else
#IFkrZ6 C++ 5.1 15 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. printf("Hello World");
  5. return 0;
  6. }
#Qvsyfz PHP 1 minute ago
Success
  1. <?php
  2.  
  3.  
  4. $a = '\hhh';
  5.  
  6. $re = preg_replace('/\\/','aaa', $a);
  7.  
  8. echo $re;
  9. // your code goes here
#L78zas C++14 18 minutes ago
Runtime error
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int ar[310] ,dp[310][310];
  4. int main(){
  5. int n;
  6. while(scanf("%d",&n),n){
  7. memset(dp,0,sizeof(dp));
  8. for(int i=1;i<=n;i++){
  9. scanf("%d",ar+i);
#AdYnYy Java 16 minutes ago
Compilation error
  1. public class myinter
  2. {
  3. int x;
  4. abstract void display();
  5. }
  6. class A extends myinter
  7. {
  8. public void display()
  9. {
#19H0wU C++14 18 minutes ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define MAX 1020
  4.  
  5. int matrix[MAX][MAX];
  6. int visit[MAX];
  7. int d[MAX],f[MAX],level[MAX];
  8. int Time;
  9. int city;
#JlhKOG 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. {
#cLoUNh C++14 31 seconds ago
Success
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. struct predmet
  6. {
  7. double c;
  8. double v;
  9. predmet()
#BOwKi1 C++ 5.1 18 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout<<"Hello World"<<endl;
  6. return 0;
  7. }
#09SuU2 C++14 14 minutes ago
Compilation error
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class AbsBase
  6. {
  7. virtual void init() = 0;
  8. virtual void work() = 0;
  9. };
#PQUvLN C++ 5.1 18 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout << "\v";
  6. cout << "ghada" << endl;
  7. return 0;
  8. }
#BVdl8h C++14 19 minutes ago
Runtime error
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int ar[310] ,dp[310][310];
  4. int main(){
  5. int n;
  6. while(scanf("%d",&n),n){
  7. memset(dp,0,sizeof(dp));
  8. for(int i=1;i<=n;i++){
  9. scanf("%d",ar+i);
#w3j6lY C 16 minutes ago
Success
  1. // Registro de un empleado
  2. #include <stdio.h>
  3.  
  4. int main(void) {
  5. struct persona {
  6. char nombre[30];
  7. char departamento[30];
  8. float sueldo;
  9. } empleado;
#B9h9hO C 18 minutes ago
Success
  1. #include <stdio.h>
  2. #define tyu8 unsigned int
  3. union
  4. {
  5. tyu8 fiu8TransmitType; // |I/G|T3|RS| - 0 - |
  6. struct TransmitType
  7. {
  8. tyu8 fiu8IndividualOrGroup : 1; // Individual or Group message
  9. tyu8 fiu8Type3 : 1; // Type 3 message (with Ack)
#b3rOWB C++14 18 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int *ptr = new int (10);
  7.  
  8. cout << "Original value:" << endl;
  9. cout << "*ptr = " << *ptr << endl;
#Rds87f C 19 minutes ago
Runtime error
  1. #include <stdio.h>
  2. #define TRUE 1
  3.  
  4. int sumSeries(int n)
  5. {
  6. return 5;
  7. }
  8.  
  9. int main()
#Ba90HU Java 19 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. {
#5z0XKw C 18 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int var=5;
  6. printf("Value:%d\n",var);
  7. printf("Address:%u",&var);
  8.  
  9. return 0;
#QVlVrK C# 10 minutes ago
Success
  1. using System;
  2. using System.Globalization;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var bla = Single.Parse("0.005", CultureInfo.InvariantCulture) * 1000;
  9.  
#L91oQr C# 19 minutes ago
Runtime error
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. // your code goes here
  8. int lado;
  9. int superficie;