fork download
  1. #include <iostream>
  2.  
  3. struct node {
  4. int data;
  5. node *next;
  6. };
  7.  
  8. int main()
  9. {
  10. node *node = new node;
  11. delete node;
  12. return 0;
  13. }
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:10:19: error: expected type-specifier before ‘node’
  node *node = new node;
                   ^
stdout
Standard output is empty