fork(2) download
  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. {
  10. public static int min(int a, int b, int c, int d)
  11. {
  12. int mass[]=new int[4];
  13. mass[0]=a;
  14. mass[1]=b;
  15. mass[2]=c;
  16. mass[3]=d;
  17. for(int i=0;i<4;i++)
  18. {
  19. if(mass>mass[i+1])
  20. {
  21. int temp=mass;
  22. mass=mass[i+1];
  23. mass[i+1]=temp;
  24. }
  25.  
  26. }
  27. int R=mass[0];
  28. return R;//напишите тут ваш код
  29. }
  30.  
  31. public static void main (String[] args) throws java.lang.Exception
  32. {
  33. // your code goes here
  34. }
  35. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:19: error: bad operand types for binary operator '>'
if(mass>mass[i+1])
       ^
  first type:  int[]
  second type: int
Main.java:21: error: incompatible types: int[] cannot be converted to int
int temp=mass;
         ^
Main.java:22: error: incompatible types: int cannot be converted to int[]
mass=mass[i+1];
         ^
3 errors
stdout
Standard output is empty