|error: expected type-specifier before '(' token|

初学者的问题,在看视频的时候老师是可以运行的,但我用vs和codeblock都不能运行,代码我是照着打下来的,应该没错,那么这个是编译器问题还是我真的打错了....#include
using namespace std;

#include"string"
#include
#include
#include"set"
#include
#include"functional"

//函数对象
template
class show
{
public:
void operator(T &t)
{
cout << t << " ";
}

private:

};

void main()
{
cout << "hello wordl" << endl;
system("pause");
return 0;
}

 void operator<<(T &t)
你运算符没写

你现在的水平是不可能遇到“编译器问题”的。