fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. int main() {
  7. vector<float>bie;
  8. int i=0,b,c;
  9. float a;
  10. while(a!=0)
  11. {
  12. cin>>a;
  13. bie.push_back(a);
  14. }
  15. c=bie.size()-3;
  16. sort( bie.begin(), bie.end() );
  17. for(b = bie.size();b=c; b-- )
  18. {
  19. std::cout << bie[ b ] << std::endl;
  20. }
  21. return 0;
  22. }
Runtime error #stdin #stdout 0s 4324KB
stdin
480.04
450.23
460.90
502.20
493.23
430.23
431.56
432.34
460.78
500.10
489.14
471.23
482.23
500.13
0
stdout
Standard output is empty