foo.cpp:2:7: error: expected nested-name-specifier before 'namesapce'
foo.cpp:2:7: error: 'namesapce' has not been declared
foo.cpp:2:17: error: expected ';' before 'std'
foo.cpp:2:17: error: 'std' does not name a type
foo.cpp: In function 'int main()':
foo.cpp:6:1: error: 'cin' was not declared in this scope
foo.cpp:6:1: note: suggested alternative:
In file included from foo.cpp:1:0:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:61:18: note: 'std::cin'
foo.cpp:7:1: error: 'cout' was not declared in this scope
foo.cpp:7:1: note: suggested alternative:
In file included from foo.cpp:1:0:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:62:18: note: 'std::cout'
foo.cpp:7:24: error: 'endl' was not declared in this scope
foo.cpp:7:24: note: suggested alternative:
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40:0,
from foo.cpp:1:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:562:5: note: 'std::endl'