when i try to compile stuff i get this

c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(53): error C2143: syntax error : missing ';' before '{'
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(53): error C2871: 'vc_attributes' : a namespace with this name does not exist
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(53): error C2447: '{' : missing function header (old-style formal list?)
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(244): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(244): error C2039: 'YesNoMaybe' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(244): error C2146: syntax error : missing ';' before identifier 'SA_YesNoMaybe'
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(244): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(244): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(245): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(245): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(245): error C2039: 'Yes' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(245): error C2065: 'Yes' : undeclared identifier
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(246): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(246): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(246): error C2039: 'No' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(246): error C2065: 'No' : undeclared identifier
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(247): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(247): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(247): error C2039: 'Maybe' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(247): error C2065: 'Maybe' : undeclared identifier
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(249): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(249): error C2039: 'AccessType' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(249): error C2146: syntax error : missing ';' before identifier 'SA_AccessType'
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(249): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(249): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(250): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(250): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(250): error C2039: 'NoAccess' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(250): error C2065: 'NoAccess' : undeclared identifier
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(251): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(251): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(251): error C2039: 'Read' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(251): error C2065: 'Read' : undeclared identifier
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(252): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(252): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(252): error C2039: 'Write' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(252): error C2065: 'Write' : undeclared identifier
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(253): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(253): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(253): error C2039: 'ReadWrite' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(253): error C2065: 'ReadWrite' : undeclared identifier
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(256): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(256): error C2039: 'PreAttribute' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(256): error C2146: syntax error : missing ';' before identifier 'SA_Pre'
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(256): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(256): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(257): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(257): error C2039: 'PostAttribute' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(257): error C2146: syntax error : missing ';' before identifier 'SA_Post'
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(257): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(257): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(258): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(258): error C2039: 'FormatStringAttribute' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(258): error C2146: syntax error : missing ';' before identifier 'SA_FormatString'
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(258): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(258): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(259): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(259): error C2039: 'InvalidCheckAttribute' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(259): error C2146: syntax error : missing ';' before identifier 'SA_InvalidCheck'
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(259): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(259): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(260): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(260): error C2039: 'SuccessAttribute' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(260): error C2146: syntax error : missing ';' before identifier 'SA_Success'
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(260): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(260): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(261): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(261): error C2039: 'PreBoundAttribute' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(261): error C2146: syntax error : missing ';' before identifier 'SA_PreBound'
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(261): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(261): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(262): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(262): error C2039: 'PostBoundAttribute' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(262): error C2146: syntax error : missing ';' before identifier 'SA_PostBound'
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(262): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(262): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(263): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(263): error C2039: 'PreRangeAttribute' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(263): error C2146: syntax error : missing ';' before identifier 'SA_PreRange'
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(263): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(263): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(264): error C3083: 'vc_attributes': the symbol to the left of a '::' must be a type
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(264): error C2039: 'PostRangeAttribute' : is not a member of '`global namespace''
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(264): error C2146: syntax error : missing ';' before identifier 'SA_PostRange'
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(264): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(264): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

i tried to reinstall visual studio but it did not work...

why do i get these errors?
whats sourceannotations.h?
how can i solve this?

Could you paste you code here?

the point is that the errors aren't in my code

At least post the order of your headers at the top of your code. Is a header you wrote listed ahead of some of the standard ones? If so, you may be missing a ; after one of your class declarations.

whops i changed one thing in the file sourceannotations.h. work't after remove using in front of namespace

I wouldn't modify any of the headers like that, but okay.