fork download
  1. #include <vector>
  2. #include <algorithm>
  3. #include <iostream>
  4.  
  5. /*Heap Sort с применением стандартных средств языка*/
  6. void heapsort_std(int a[], int size){
  7. std::cout << "heapsort: sizeof(array) = " << sizeof(a) << std::endl;
  8. }
  9.  
  10. int main() {
  11. int v[10] = {7, 1, 3, 6, 5, 8, 9, 4, 0, 2};
  12. std::cout << "main: sizeof(array) = " << sizeof(v) << std::endl;
  13. heapsort_std(v, 10);
  14. return 0;
  15. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
main: sizeof(array) = 40
heapsort: sizeof(array) = 4