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

#WNMkop Java 42 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. {
#OM2Kdr Java 42 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. {
#JZAUSm C++14 42 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. bool check_all_denominations(vector<bool> P, int v, vector<int> x)
  6. {
  7. P[0] = true;
  8.  
  9. for (int i = 1; i <= x.size(); i++)
#cNGnlW C++14 42 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. bool check_all_denominations(vector<bool> P, int v, vector<int> x)
  6. {
  7. P[0] = true;
  8.  
  9. for (int i = 1; i <= x.size(); i++)
#z4P6jx C 41 minutes ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. int main(void) {
  6. char buf[1024] = {0};
  7.  
  8. strcat(buf, "qwe");
  9.  
#TXUhOh Fortran 43 minutes ago
Success
  1. program TEST
  2. ! your code goes here
  3. real :: x(5)
  4. x = 12
  5. print *, x
  6. end
#pKdSSu C 40 minutes ago
Success
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(){
  5.  
  6. int i,n,s = 0;
  7. int v[10];
  8.  
  9. printf("Entre o número n de inteiros");
#zNNPXV C++14 43 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <bits/stdc++.h>
  4. using namespace std;
  5. long long a, b, c, d, N, sum;
  6. int main()
  7. {
  8. cin >> N;
  9. sum = 0;
#EZ82ol C++14 43 minutes ago
Success
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define _CRT_SECURE_NO_DEPRECATE // suppress some compilation warning messages (for VC++ users)
  5. #define INF 2000000000 // 2 billion
  6. #define MEMSET_INF 127 // about 2B
  7. #define FOR(idx, a, b) \
  8.   for (int idx = int(a); idx <= int(b); idx++)
  9. #define FORit(a, it) \
#pliEYv Fortran 43 minutes ago
Success
  1. program TEST
  2. ! your code goes here
  3. stop
  4. end
#HtO679 Fortran 44 minutes ago
Success
  1. program TEST
  2. real :: x(5)
  3. x = 12
  4. print *, x
  5. end
#D6UcNZ C++14 37 minutes ago
Success
  1. #include<bits/stdc++.h>
  2.  
  3.  
  4. using namespace std;
  5.  
  6. stack <int> stc;
  7. queue <int> q;
  8. vector <int> v;
#GFpYN4 C++14 23 minutes ago
Compilation error
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5.  
  6. // This is the interface that allows for creating nested lists.
  7. // You should not implement it, or speculate about its implementation
  8. class NestedInteger {
  9. public:
#xKey3Q Perl 44 minutes ago
Runtime error
  1. #!/usr/bin/perl
  2. # your code goes here
  3. #$Id: sync-wcr-vaklist,v 1.2 2009/11/12 01:05:24 ezm Exp $
  4.  
  5. PATH="/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/sbin:/sbin"; export PATH
  6.  
  7. out="/var/tellme/wcr-vaklist"
  8. tmp=$out.$$
  9. url="https://c...content-available-to-author-only...e.com/resources/list_wcr_enabled_vaks"
#LVJVjM C++ 5.1 28 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int n;
  6. cin >> n;
  7. char word[101];
  8. cin >> word;
  9. cout<< word;
#wyYdXY Java 44 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. {
#yklW3i C 39 minutes ago
Compilation error
  1.  
  2. #include <stdio.h>
  3. struct test
  4. {
  5. unsigned int x,z;
  6. long int y:33;
  7. //unsigned int z;
  8. };
  9. int main()
#5FJewX Java 43 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. import java.util.ArrayList;
  7.  
  8. /* Name of the class has to be "Main" only if the class is public. */
  9. class Ideone
#4VlSpC Perl 45 minutes ago
Success
  1. # Q6 Perl Assignment Hash of Hashes
  2. # Jeffrey Borgard
  3. # List of Bestselling Books using a Hash of Hashes
  4. # Information about the five books selected from Question 4
  5.  
  6.  
  7. # array:
  8. @books = ("15th Affair", "Me Before You", "The Rainbow Comes and Goes", "Alexander Hamilton", "A Court of Mist
#K2RzPb Java 23 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. public static void print(List<? extends Number>list){
  9. for(Number n:list){
#ANPP1d C++14 45 minutes ago
Success
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a[] = {10,20,30,40,50};
  6. printf("%d",-2[a]);
  7. return 0;
  8. }
#1F1TxZ C 45 minutes ago
Success
  1. #include<stdio.h>
  2.  
  3. static char daytab[2][13]={
  4. {0,31,28,31,30,31,30,31,31,30,31,30,31},
  5. {0,31,29,31,30,31,30,31,31,30,31,30,31}
  6. };
  7.  
  8. int day_of_year(int year,int month,int day);
  9. void month_day(int year,int yearday,int *pmonth,int *pday);
#8PzhDS C++ 40 minutes ago
Success
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <cstdlib>
  4.  
  5. using namespace std;
  6.  
  7. void insertion_sort(int* input, int size)
  8. {
  9. for (int i=1; i<size; i++)
#gJczGD C++ 5.1 45 minutes ago
Compilation error
  1. /*Miles per Gallon A car's miles-per-gallon (MPG) can be calculated with the following formula: MPG = Miles driven / Gallons of gas used.
  2.  Write a program that asks the user (or the number of miles driven and the gallons of gas
  3. used. It should calculate the car's miles-per-gallon and display the result on the screen.
  4. */
  5.  
  6. import java.util.Scanner;
  7. public class MilesPerGallon
  8. {
  9. public static void main(String [] args)
#7yujte Java 45 minutes ago
Time limit exceeded
  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. {
#zOtp4P Java 45 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. {
#MXGhQq C++ 46 minutes ago
Compilation error
  1. /*Miles per Gallon A car's miles-per-gallon (MPG) can be calculated with the following formula: MPG = Miles driven / Gallons of gas used.
  2.  Write a program that asks the user (or the number of miles driven and the gallons of gas
  3. used. It should calculate the car's miles-per-gallon and display the result on the screen.
  4. */
  5.  
  6. import java.util.Scanner;
  7. public class MilesPerGallon
  8. {
  9. public static void main(String [] args)
#2u3xhX C 46 minutes ago
Compilation error
  1. #include<stdio.h>
  2.  
  3. int main()
  4.  
  5. {
  6.  
  7. int first=0,second=1,third,i,n;
  8.  
  9. printf(“Enter the number of elements:);
#HJS4AW Java 47 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. {
#wzFWBz C 47 minutes ago
Success
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int str[20], sum = 0;
  6. int i;
  7.  
  8. scanf("%s", str);
  9.