I am trying to write classes and structs in C++, for example:

```
using namespace std;

struct Position { 
    int x; 
    int y;  
};

class Maze {
    Position pos;
    pos.x = 0;
    pos.y = 0;
};

int main() {
    return 0;
}

```

but it rises some errors when I try to compile it:

*(gcc version 4.3.2)*

```
10: error: ISO C++ forbids declaration of 'pos' with no type
10: error: expected ';' before '.' token
11: error: ISO C++ forbids declaration of 'pos' with no type
11: error: expected ';' before '.' token

```

It looks like this piece of code is pretty much the same as it in [C++ Tutorial: Struct](http://www.cplusplus.com/doc/tutorial/structures/). 

Answers to some other posts about *"error: ISO C++ forbids declaration of '...' with no type"* (such as [this](https://stackoverflow.com/questions/1552170/help-with-error-iso-c-forbids-declaration-of-vector-with-no-type)) suggest to add namespace, but I find it hard see what is the reason why it does not work here.

In summary, I have the following questions:

1. What does this error actually mean in this case?
2. What does this error mean in general?
3. Why this code does not work?
4. How to make it work?

I will be grateful if someone could give an answer, and/or a direction of research/reading.