fork download
  1. #include <iostream>
  2. using namespace std;
  3. #include <memory.h>
  4.  
  5. struct Base
  6. {
  7.  
  8. };
  9.  
  10.  
  11. int main() {
  12.  
  13. std::unique_pt<Base> p=nullptr;
  14. // your code goes here
  15. return 0;
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:13:2: error: ‘unique_pt’ is not a member of ‘std’
  std::unique_pt<Base> p=nullptr;
  ^~~
prog.cpp:13:21: error: expected primary-expression before ‘>’ token
  std::unique_pt<Base> p=nullptr;
                     ^
prog.cpp:13:23: error: ‘p’ was not declared in this scope
  std::unique_pt<Base> p=nullptr;
                       ^
stdout
Standard output is empty