VS compiler error: unexpected token in the ";" Before

Today, we faced a dilemma problem

Here Insert Picture Description
He said syntax error ";", so I think that is a function of the piece more or less a semicolon ";", and has been kept in parentheses review function part, over and over again. But for a long time still find no error ah, big head ... and finally found the real cause of the error. . . Actually no problem include the header file

////1.闭散列
//#include<map>
//#include<vector>
//#include<utility>
//#include<iostream>
//using namespace std;

I realized when open hash hash, hash smoothly put the realization of closed shielding, including header files. Although the issue is not included in the header file, but the compiler just happens to remind you that ---- " unexpected token in the"; "before " problem. Release the code will turn the file screen normal friends ~ ~ ~

So encountered such problems, one needs to check the grammar is not really a problem; on the other hand need to look at your header file has not missed Oh ~ ~ ~

Guess you like

Origin blog.csdn.net/tonglin12138/article/details/92775025