fork download
  1.  
  2. struct Item
  3. {
  4. protected:
  5. ~Item();
  6. };
  7.  
  8.  
  9. int main()
  10. {
  11. Item item;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:5: error: ‘Item::~Item()’ is protected
prog.cpp:11: error: within this context
prog.cpp:11: warning: unused variable ‘item’
stdout
Standard output is empty