fork(1) 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,bie.size();
  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. }
Compilation error #stdin compilation error #stdout 0s 0KB
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
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:8:17: error: expected initializer before ‘.’ token
  int i=0,b,c,bie.size();
                 ^
prog.cpp:15:16: error: expected ‘;’ before ‘sort’
  c=bie.size()-3
                ^
                ;
   sort( bie.begin(), bie.end() );
   ~~~~          
stdout
Standard output is empty