fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int *vernutMassiv(int a, int be, int ce)
  5. {
  6. return new int[3]{a, be, ce};
  7. }
  8.  
  9. int main() {
  10. int* massiv1 = vernutMassiv(1,2,3);
  11. int* massiv2 = vernutMassiv(2,3,4);
  12. int* massiv3 = vernutMassiv(3,4,5);
  13.  
  14. cout << massiv1[0];
  15. cout << massiv2[0];
  16. cout << massiv3[0];
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0s 3228KB
stdin
Standard input is empty
stdout
123