Jakie wymagania ma ideone.com przy kompilacji?

0

Nie mogę nic odpalić na ideone.com. Nawet takiej głupoty. Co mu się nie podoba?

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Czesc2;

import java.util.Scanner;

/**
 *
 * @author Z710
 */
public class SPJ769Probne {
    public static void main(String []args){
        
        int A,B,C;
        Scanner skaner = new Scanner(System.in);
        
        A = skaner.nextInt();
        B = skaner.nextInt();
        
        C = A+B;
        System.out.println(C);
   
        
    }
    
}
1

Przecież masz w przykładowym kodzie komentarz:

/* package whatever; // don't place package name! */
0

"Błąd wykonania"

/* 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
{
	public static void main (String[] args) throws java.lang.Exception
	{
		

        int A,B,C;
        Scanner skaner = new Scanner(System.in);
        
        A = skaner.nextInt();
        B = skaner.nextInt();
        
        C = A+B;
        System.out.println(C);
   
        
    }
    
}

	
1

a podałeś coś na stdin?

1 użytkowników online, w tym zalogowanych: 0, gości: 1