#ifndef PQ_H#define PQ_H class Item; template<class Item>class PQ{ PQ(int); int empty() const; void insert(Item); Item getmax();}; #endif
Standard input is empty
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> ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!