fork(1) download
  1. #include <iostream>
  2. #include <memory>
  3. using namespace std;
  4.  
  5. struct Noisy
  6. {
  7. ~Noisy(){cout<<" destruktor "<<endl;}
  8. }
  9.  
  10. int main() {
  11. // your code goes here
  12. unique_ptr<Noisy> ptr(new Noisy[10]);
  13.  
  14.  
  15. return 0;
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:8:1: error: expected ‘;’ after struct definition
 }
 ^
stdout
Standard output is empty