fork download
  1. ) #include <iostream>
  2. #include <cmath>
  3. using name std;
  4. int main()
  5. {
  6. int a,b,c,d,e;
  7. cout<<"Введите 5 чисел";
  8. cin >>a>>b>>c>>d>>e;
  9. int Max=a;
  10. int Min=a;
  11. if(b<Min)
  12. {
  13. Min=b;
  14.  
  15. }
  16. if(c<Min)
  17. {
  18. Min=c;
  19.  
  20. }
  21. if(d<Min)
  22. {
  23. Min=d;
  24.  
  25. }
  26. if(e<Min)
  27. {
  28. Min=e;
  29.  
  30. }
  31. if(b>Max)
  32. {
  33. Max=b;
  34.  
  35. }
  36. if(c>Max)
  37. {
  38. Max=c;
  39.  
  40. }
  41. if(d>Max)
  42. {
  43. Max=d;
  44.  
  45. }
  46. if(e>Max)
  47. {
  48. Max=e;
  49.  
  50. }
  51. cout<<"Max";
  52. cout<<"Min";
  53. endl;
  54. return 0;
  55. }
  56.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:4: error: stray ‘#’ in program
 )  #include <iostream>
    ^
prog.cpp:1:1: error: expected unqualified-id before ‘)’ token
 )  #include <iostream>
 ^
In file included from /usr/include/c++/6/cmath:43:0,
                 from prog.cpp:2:
/usr/include/c++/6/ext/type_traits.h:162:35: error: ‘__gnu_cxx::__is_null_pointer’ declared as an ‘inline’ variable
   __is_null_pointer(std::nullptr_t)
                                   ^
/usr/include/c++/6/ext/type_traits.h:162:35: error: ‘bool __gnu_cxx::__is_null_pointer’ redeclared as different kind of symbol
/usr/include/c++/6/ext/type_traits.h:157:5: note: previous declaration ‘template<class _Type> bool __gnu_cxx::__is_null_pointer(_Type)’
     __is_null_pointer(_Type)
     ^~~~~~~~~~~~~~~~~
/usr/include/c++/6/ext/type_traits.h:162:21: error: ‘nullptr_t’ is not a member of ‘std’
   __is_null_pointer(std::nullptr_t)
                     ^~~
prog.cpp:3:11: error: expected nested-name-specifier before ‘name’
     using name std;
           ^~~~
prog.cpp: In function ‘int main()’:
prog.cpp:7:6: error: ‘cout’ was not declared in this scope
      cout<<"Введите 5 чисел";
      ^~~~
prog.cpp:8:6: error: ‘cin’ was not declared in this scope
      cin >>a>>b>>c>>d>>e;
      ^~~
prog.cpp:53:6: error: ‘endl’ was not declared in this scope
      endl;
      ^~~~
stdout
Standard output is empty