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

#myOk9Q Java 5 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. import java.math;
  7.  
  8. /* Name of the class has to be "Main" only if the class is public. */
  9. class Ideone
#HVlBCr C 7 minutes ago
Success
  1. #include <stdio.h>
  2. int main(void) {
  3. int *ptrTest = 55;
  4. printf("%p", ptrTest);
  5. return 0;
  6. }
#Gw5HPV C++ 4.3.2 7 minutes ago
Compilation error
  1. #include<cstdio>
  2. #include<queue>
  3. using namespace std;
  4. int main(){
  5. int t;
  6. scanf("%d",&t);
  7. while(t!=0){
  8. queue<int> q,q2;
  9. for(int i=1;i<=t;i++){
#rSXvgN 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. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
#g3yVGy Java 7 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. {
#M7pDFy C++14 5 minutes ago
Success
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4. int indexOfFirstElement(vector<int> &a, int s, int e) {
  5. if (s == e || a[s] < a[e]) {
  6. return s;
  7. }
  8. int mid = s + (e-s)/2;
  9. if (a[mid] > a[s]) {
#HEmdSF C++ 7 minutes ago
Success
  1. #include<iostream>
  2. #include<algorithm>
  3. using namespace std;
  4. int main(){
  5. return 0;}
#wWTXjE C++14 10 seconds ago
Runtime error
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <vector>
  4. using namespace std;
  5.  
  6. int main() {
  7. vector<long> meh;
  8. int t,n;long int temp,prev;
  9. cin>>t;
#I0zK31 C 1 minute ago
Compilation error
  1. #include <stdio.h>
  2. int letternum(char *str);
  3. int main(void)
  4. {
  5. char a[100];
  6. printf("Please input a string:");
  7. scanf("%s",a);
  8. printf("The number of letter is %d:",letternum(a));
  9. return 0;
#v8KJtm C++ 5.1 7 minutes ago
Success
  1. #include <iostream>
  2. #include <stack>
  3. using namespace std;
  4. int main() {
  5. stack <int> s;
  6. s.push(5);
  7. s.push(12);
  8. s.push(7);
  9. s.push(6);
#vDa3rq C++14 7 minutes ago
Success
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4. int indexOfFirstElement(vector<int> &a, int s, int e) {
  5. if (s == e || a[s] < a[e]) {
  6. return s;
  7. }
  8. int mid = s + (e-s)/2;
  9. if (a[mid] > a[s]) {
#4AnQIa C 7 minutes ago
Success
  1. #include <stdio.h>
  2. int main(void) {
  3. int *ptrTest = 55;
  4. printf("%d", ptrTest);
  5. return 0;
  6. }
#U0of8v C++14 1 minute ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct HexCharStruct
  5. {
  6. unsigned char c;
  7. HexCharStruct(unsigned char _c) : c(_c) { }
  8. };
#K2qcN6 JavaScript (rhino) 7 minutes ago
Runtime error
  1. importPackage(java.io);
  2. importPackage(java.lang);
  3.  
  4. // your code goes here
  5. /*
  6. function fff(){
  7. return 'aaaa';
  8. }*/
#JX4TMl C++14 7 minutes ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int frq[1001]={};
  6. int n;
  7. cin>>n;
  8. for(int x,i=0; i<n; i++){
  9. cin>>x;
#vrPo2s C 7 minutes ago
Compilation error
  1. #include <stdio.h>
  2.  
  3. main()
  4. {
  5. char a = `A`;
  6. printf("%d\n", a);
  7. printf("%c\n", a);
  8. }
#DYOtS4 C 8 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("hello world");
  5. return 0;
  6. }
#7Xvuod Python 4 minutes ago
Compilation error
  1. public class Even
  2. {
  3. public static void main(String args[])
  4. {
  5. Scanner num = new Scanner (System.in);
  6. int n = num.nextInt();
  7. System.out.println("enter num");
  8. if(n%2==0)
  9. System.out.println("even");
#ansgKm Java 8 minutes ago
Compilation error
  1. int x=5,y=6,z=7;
  2. double ans;
  3. if (x+z<y+z)
  4. {
  5. x+=y;
  6. ans=3*x/y;
  7. }
  8. else
  9. {
#Fop5cL C 8 minutes ago
Success
  1. #include <stdio.h>
  2. int main(void) {
  3. int *ptrTest = 55;
  4. printf("%p", ptrTest);
  5. return 0;
  6. }
#ysVUdQ C++ 8 minutes ago
Compilation error
  1. #include<iostream>
  2. #include<algoritm>
  3. using namespace std;
  4. int main(){
  5. return 0;}
#552SwZ Java7 8 minutes ago
Success
  1. import java.util.Scanner;
  2.  
  3. class main {
  4. public static void main(String args[]){
  5. Scanner sc = new Scanner(System.in);
  6. int n=sc.nextInt();
  7. int m=n;
  8. sc.nextLine();
  9. String x=sc.nextLine();
#qXWp1W C++14 8 minutes ago
Success
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5. void drawStickerFor(int R,int C)
  6. {
  7. if (R <=100 && C <= 100)
  8. {
  9. if (R == 1 && C ==1)
#SonBn2 Pascal (fpc) 4 minutes ago
Success
  1. procedure swap(var a,b:longint);
  2. var
  3. tukar:longint;
  4. begin
  5. tukar:=a;
  6. a:=b;
  7. b:=tukar;
  8. end;
#aymM9P Python 3 4 minutes ago
Runtime error
  1. # your code goes here
  2. import math
  3. b=[False]
  4. for i in range(1,10000):
  5. if(b[math.floor(i/2)]==False or b[math.floor(i/3)]==False or b[math.floor(i/4)]==False or b[math.floor(i/5)]==False or b[math.floor(i/6)]==False):
  6. b.append(True)
  7. else:
  8. b.append(False)
  9.  
#D4muLa PHP 8 minutes ago
Runtime error
  1. <?php
  2. $string = str_split('BBGG');
  3. for($i=0; $i<count($string); $i++){
  4. //echo $string[$i]."\n";
  5. if($string[$i] === $string[$i+1])
  6. echo "Equal";
  7. else{
  8. $temp = $string[$i+1];
  9. $string[$i+1] = $string[$i];
#Pg9Jyq Java7 9 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. public class Test
  8. { public static viod main{String[]args)
  9. {
#FveqIf C 9 minutes ago
Success
  1. #include <stdio.h>
  2. int main(void) {
  3. int ptrTest = 55;
  4. printf("%p", &ptrTest);
  5. return 0;
  6. }
#2btRNu Java 9 minutes ago
Compilation error
  1. public class Test { /**
  2.   * @param args
  3.   */
  4. private String myName;
  5. private String lastName;
  6.  
  7.  
  8. public Test() {
  9. // TODO Auto-generated constructor stub
#l70e8K Python 3 4 minutes ago
Success
  1. # Гласные. Их упорядочивать не нужно (они одинаковой длины, внезапно).
  2. VOWELS = ["а", "е", "и", "о", "у", "ы", "э", "ю", "я"]
  3.  
  4.  
  5. # Для генерации ADJECTIVAL (ADJECTIVE и PARTICIPLE + ADJECTIVE).
  6. # Просто склеиваем все возможные варианты PARTICIPLE + ADJECTIVE, а потом добавляем к ним чистые ADJECTIVE.
  7. def generate_adjectival():
  8. adjective_suffixes = _ADJECTIVE["2"]
  9. mix_1 = []