fork download
  1. #ifndef PQ_H
  2. #define PQ_H
  3.  
  4. class Item;
  5.  
  6. template<class Item>
  7. class PQ{
  8. PQ(int);
  9. int empty() const;
  10. void insert(Item);
  11. Item getmax();
  12. };
  13.  
  14. #endif
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:4:1: error: unknown type name 'class'
 class Item;
 ^
prog.c:6:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
 template<class Item>
         ^
stdout
Standard output is empty