question 1 : is this a version related problem of c++, despite using the -std=c++0x flag, nothing changes.
Yes. Lambdas are not supported in GCC 4.4. You will need to upgrade to or install version 4.5 or higher. See here for more details.
question 2 : i can't use -std=c++11 flag, despite that i installed the gcc 4.7 in my machine.
That is not a question.