int03.cpp(1): error #77: this declaration has no storage class or type specifier __GXX_EXPERIMENTAL_CXX0X__ ^ /usr/include/c++/4.4.6/bits/stringfwd.h(42): error: expected a ";" _GLIBCXX_BEGIN_NAMESPACE(std) ^ /usr/include/c++/4.4.6/cstddef(51): error: the global scope has no "ptrdiff_t" using ::ptrdiff_t; ^ /usr/include/c++/4.4.6/bits/postypes.h(98): error: identifier "ptrdiff_t" is undefined typedef ptrdiff_t streamsize; // Signed integral type ^ /usr/include/c++/4.4.6/iosfwd(46): error: char_traits is not a template template > ^ /usr/include/c++/4.4.6/iosfwd(49): error: char_traits is not a template template > ^ /usr/include/c++/4.4.6/iosfwd(52): error: char_traits is not a template template > ^ /usr/include/c++/4.4.6/iosfwd(55): error: char_traits is not a template template > ^ /usr/include/c++/4.4.6/iosfwd(58): error: char_traits is not a template template > ^ /usr/include/c++/4.4.6/iosfwd(61): error: char_traits is not a template template, ^ /usr/include/c++/4.4.6/iosfwd(62): error: allocator is not a template typename _Alloc = allocator<_CharT> > ^ /usr/include/c++/4.4.6/iosfwd(65): error: char_traits is not a template template, ^ /usr/include/c++/4.4.6/iosfwd(66): error: allocator is not a template typename _Alloc = allocator<_CharT> > ^ /usr/include/c++/4.4.6/iosfwd(69): error: char_traits is not a template template, ^ /usr/include/c++/4.4.6/iosfwd(70): error: allocator is not a template typename _Alloc = allocator<_CharT> > ^ /usr/include/c++/4.4.6/iosfwd(73): error: char_traits is not a template template, ^ /usr/include/c++/4.4.6/iosfwd(74): error: allocator is not a template typename _Alloc = allocator<_CharT> > ^ /usr/include/c++/4.4.6/iosfwd(77): error: char_traits is not a template template > ^ /usr/include/c++/4.4.6/iosfwd(80): error: char_traits is not a template template > ^ /usr/include/c++/4.4.6/iosfwd(83): error: char_traits is not a template template > ^ /usr/include/c++/4.4.6/iosfwd(86): error: char_traits is not a template template > ^ /usr/include/c++/4.4.6/iosfwd(89): error: char_traits is not a template template > ^ /usr/include/c++/4.4.6/iosfwd(92): error: char_traits is not a template template > ^ /usr/include/c++/4.4.6/bits/stl_iterator_base_types.h(102): error: identifier "ptrdiff_t" is undefined template& __lhs, ^ /usr/include/c++/4.4.6/bits/basic_string.h(2240): error: too few arguments for class template "std::basic_string" const basic_string<_CharT>& __rhs) ^ /usr/include/c++/4.4.6/bits/basic_string.h(2239): error: nonmember operator requires a parameter with class or enum type operator==(const basic_string<_CharT>& __lhs, ^ /usr/include/c++/4.4.6/bits/basic_string.h(2485): error: too few arguments for class template "std::basic_string" operator>>(basic_istream& __is, basic_string& __str); ^ /usr/include/c++/4.4.6/bits/basic_string.h(2485): error: no instance of function template "std::operator>>" matches the specified type operator>>(basic_istream& __is, basic_string& __str); ^ /usr/include/c++/4.4.6/bits/basic_string.h(2544): error: too few arguments for class template "std::basic_string" getline(basic_istream& __in, basic_string& __str, ^ /usr/include/c++/4.4.6/bits/basic_string.h(2544): error: no instance of overloaded function "std::getline" matches the specified type getline(basic_istream& __in, basic_string& __str, ^ /usr/include/c++/4.4.6/bits/basic_string.h(2550): error: too few arguments for class template "std::basic_string" getline(basic_istream& __in, basic_string& __str, ^ /usr/include/c++/4.4.6/bits/basic_string.h(2550): error: no instance of overloaded function "std::getline" matches the specified type getline(basic_istream& __in, basic_string& __str, ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1134): error: too few arguments for class template "std::basic_string" extern template class basic_string; ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1134): error: invalid explicit instantiation declaration extern template class basic_string; ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1137): error: identifier "string" is undefined operator>>(basic_istream&, string&); ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1137): error: no instance of function template "std::operator>>" matches the specified type operator>>(basic_istream&, string&); ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1140): error: identifier "string" is undefined operator<<(basic_ostream&, const string&); ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1140): error: no instance of function template "std::operator<<" matches the specified type operator<<(basic_ostream&, const string&); ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1143): error: identifier "string" is undefined getline(basic_istream&, string&, char); ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1143): error: no instance of overloaded function "std::getline" matches the specified type getline(basic_istream&, string&, char); ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1146): error: identifier "string" is undefined getline(basic_istream&, string&); ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1146): error: no instance of overloaded function "std::getline" matches the specified type getline(basic_istream&, string&); ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1149): error: too few arguments for class template "std::basic_string" extern template class basic_string; ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1149): error: invalid explicit instantiation declaration extern template class basic_string; ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1152): error: identifier "wstring" is undefined operator>>(basic_istream&, wstring&); ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1152): error: no instance of function template "std::operator>>" matches the specified type operator>>(basic_istream&, wstring&); ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1155): error: identifier "wstring" is undefined operator<<(basic_ostream&, const wstring&); ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1155): error: no instance of function template "std::operator<<" matches the specified type operator<<(basic_ostream&, const wstring&); ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1158): error: identifier "wstring" is undefined getline(basic_istream&, wstring&, wchar_t); ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1158): error: no instance of overloaded function "std::getline" matches the specified type getline(basic_istream&, wstring&, wchar_t); ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1161): error: identifier "wstring" is undefined getline(basic_istream&, wstring&); ^ /usr/include/c++/4.4.6/bits/basic_string.tcc(1161): error: no instance of overloaded function "std::getline" matches the specified type getline(basic_istream&, wstring&); ^ /usr/include/c++/4.4.6/bits/locale_classes.h(213): error: identifier "string" is undefined string ^ /usr/include/c++/4.4.6/bits/locale_classes.h(611): error: too few arguments for class template "std::basic_string" typedef basic_string<_CharT> string_type; ^ /usr/include/c++/4.4.6/bits/locale_classes.h(786): error: too few arguments for class template "std::basic_string" typedef basic_string<_CharT> string_type; ^ /usr/include/c++/4.4.6/bits/ios_base.h(223): error: identifier "string" is undefined failure(const string& __str) throw(); ^ /usr/include/c++/4.4.6/bits/ios_base.h(234): error: identifier "string" is undefined string _M_msg; ^ /usr/include/c++/4.4.6/streambuf(125): error: name followed by "::" must be a class or namespace name typedef typename traits_type::int_type int_type; ^ detected during instantiation of class "std::basic_streambuf<_CharT, _Traits> [with _CharT=char, _Traits=]" at line 149 of "/usr/include/c++/4.4.6/bits/streambuf.tcc" /usr/include/c++/4.4.6/streambuf(126): error: name followed by "::" must be a class or namespace name typedef typename traits_type::pos_type pos_type; ^ detected during instantiation of class "std::basic_streambuf<_CharT, _Traits> [with _CharT=char, _Traits=]" at line 149 of "/usr/include/c++/4.4.6/bits/streambuf.tcc" /usr/include/c++/4.4.6/streambuf(127): error: name followed by "::" must be a class or namespace name typedef typename traits_type::off_type off_type; ^ detected during instantiation of class "std::basic_streambuf<_CharT, _Traits> [with _CharT=char, _Traits=]" at line 149 of "/usr/include/c++/4.4.6/bits/streambuf.tcc" /usr/include/c++/4.4.6/streambuf(125): error: name followed by "::" must be a class or namespace name typedef typename traits_type::int_type int_type; ^ detected during instantiation of class "std::basic_streambuf<_CharT, _Traits> [with _CharT=wchar_t, _Traits=]" at line 160 of "/usr/include/c++/4.4.6/bits/streambuf.tcc" /usr/include/c++/4.4.6/streambuf(126): error: name followed by "::" must be a class or namespace name typedef typename traits_type::pos_type pos_type; ^ detected during instantiation of class "std::basic_streambuf<_CharT, _Traits> [with _CharT=wchar_t, _Traits=]" at line 160 of "/usr/include/c++/4.4.6/bits/streambuf.tcc" /usr/include/c++/4.4.6/streambuf(127): error: name followed by "::" must be a class or namespace name typedef typename traits_type::off_type off_type; ^ detected during instantiation of class "std::basic_streambuf<_CharT, _Traits> [with _CharT=wchar_t, _Traits=]" at line 160 of "/usr/include/c++/4.4.6/bits/streambuf.tcc" /usr/include/c++/4.4.6/bits/locale_facets.h(1643): error: too few arguments for class template "std::basic_string" typedef basic_string<_CharT> string_type; ^ /usr/include/c++/4.4.6/bits/locale_facets.h(1744): error: identifier "string" is undefined string ^ /usr/include/c++/4.4.6/bits/locale_facets.h(1812): error: identifier "string" is undefined virtual string ^ /usr/include/c++/4.4.6/bits/locale_facets.h(1872): error: too few arguments for class template "std::basic_string" typedef basic_string<_CharT> string_type; ^ /usr/include/c++/4.4.6/bits/locale_facets.h(2102): error: identifier "string" is undefined string&) const; ^ /usr/include/c++/4.4.6/bits/locale_facets.tcc(123): error: identifier "string" is undefined const string& __grouping_tmp); ^ /usr/include/c++/4.4.6/bits/locale_facets.tcc(131): error: identifier "string" is undefined ios_base::iostate& __err, string& __xtrc) const ^ /usr/include/c++/4.4.6/bits/basic_ios.h(72): error: name followed by "::" must be a class or namespace name typedef typename _Traits::int_type int_type; ^ detected during instantiation of class "std::basic_ios<_CharT, _Traits> [with _CharT=char, _Traits=]" at line 178 of "/usr/include/c++/4.4.6/bits/basic_ios.tcc" /usr/include/c++/4.4.6/bits/basic_ios.h(73): error: name followed by "::" must be a class or namespace name typedef typename _Traits::pos_type pos_type; ^ detected during instantiation of class "std::basic_ios<_CharT, _Traits> [with _CharT=char, _Traits=]" at line 178 of "/usr/include/c++/4.4.6/bits/basic_ios.tcc" /usr/include/c++/4.4.6/bits/basic_ios.h(74): error: name followed by "::" must be a class or namespace name typedef typename _Traits::off_type off_type; ^ detected during instantiation of class "std::basic_ios<_CharT, _Traits> [with _CharT=char, _Traits=]" at line 178 of "/usr/include/c++/4.4.6/bits/basic_ios.tcc" /usr/include/c++/4.4.6/bits/basic_ios.h(72): error: name followed by "::" must be a class or namespace name typedef typename _Traits::int_type int_type; ^ detected during instantiation of class "std::basic_ios<_CharT, _Traits> [with _CharT=wchar_t, _Traits=]" at line 181 of "/usr/include/c++/4.4.6/bits/basic_ios.tcc" /usr/include/c++/4.4.6/bits/basic_ios.h(73): error: name followed by "::" must be a class or namespace name typedef typename _Traits::pos_type pos_type; ^ detected during instantiation of class "std::basic_ios<_CharT, _Traits> [with _CharT=wchar_t, _Traits=]" at line 181 of "/usr/include/c++/4.4.6/bits/basic_ios.tcc" /usr/include/c++/4.4.6/bits/basic_ios.h(74): error: name followed by "::" must be a class or namespace name typedef typename _Traits::off_type off_type; ^ detected during instantiation of class "std::basic_ios<_CharT, _Traits> [with _CharT=wchar_t, _Traits=]" at line 181 of "/usr/include/c++/4.4.6/bits/basic_ios.tcc" /usr/include/c++/4.4.6/ostream(60): error: name followed by "::" must be a class or namespace name typedef typename _Traits::int_type int_type; ^ detected during instantiation of class "std::basic_ostream<_CharT, _Traits> [with _CharT=char, _Traits=]" at line 360 of "/usr/include/c++/4.4.6/bits/ostream.tcc" /usr/include/c++/4.4.6/ostream(61): error: name followed by "::" must be a class or namespace name typedef typename _Traits::pos_type pos_type; ^ detected during instantiation of class "std::basic_ostream<_CharT, _Traits> [with _CharT=char, _Traits=]" at line 360 of "/usr/include/c++/4.4.6/bits/ostream.tcc" /usr/include/c++/4.4.6/ostream(62): error: name followed by "::" must be a class or namespace name typedef typename _Traits::off_type off_type; ^ detected during instantiation of class "std::basic_ostream<_CharT, _Traits> [with _CharT=char, _Traits=]" at line 360 of "/usr/include/c++/4.4.6/bits/ostream.tcc" /usr/include/c++/4.4.6/ostream(60): error: name followed by "::" must be a class or namespace name typedef typename _Traits::int_type int_type; ^ detected during instantiation of class "std::basic_ostream<_CharT, _Traits> [with _CharT=wchar_t, _Traits=]" at line 383 of "/usr/include/c++/4.4.6/bits/ostream.tcc" /usr/include/c++/4.4.6/ostream(61): error: name followed by "::" must be a class or namespace name typedef typename _Traits::pos_type pos_type; ^ detected during instantiation of class "std::basic_ostream<_CharT, _Traits> [with _CharT=wchar_t, _Traits=]" at line 383 of "/usr/include/c++/4.4.6/bits/ostream.tcc" /usr/include/c++/4.4.6/ostream(62): error: name followed by "::" must be a class or namespace name typedef typename _Traits::off_type off_type; ^ detected during instantiation of class "std::basic_ostream<_CharT, _Traits> [with _CharT=wchar_t, _Traits=]" at line 383 of "/usr/include/c++/4.4.6/bits/ostream.tcc" /usr/include/c++/4.4.6/istream(60): error: name followed by "::" must be a class or namespace name typedef typename _Traits::int_type int_type; ^ detected during instantiation of class "std::basic_istream<_CharT, _Traits> [with _CharT=char, _Traits=]" at line 594 /usr/include/c++/4.4.6/istream(61): error: name followed by "::" must be a class or namespace name typedef typename _Traits::pos_type pos_type; ^ detected during instantiation of class "std::basic_istream<_CharT, _Traits> [with _CharT=char, _Traits=]" at line 594 /usr/include/c++/4.4.6/istream(62): error: name followed by "::" must be a class or namespace name typedef typename _Traits::off_type off_type; ^ detected during instantiation of class "std::basic_istream<_CharT, _Traits> [with _CharT=char, _Traits=]" at line 594 /usr/include/c++/4.4.6/istream(60): error: name followed by "::" must be a class or namespace name typedef typename _Traits::int_type int_type; ^ detected during instantiation of class "std::basic_istream<_CharT, _Traits> [with _CharT=wchar_t, _Traits=]" at line 610 /usr/include/c++/4.4.6/istream(61): error: name followed by "::" must be a class or namespace name typedef typename _Traits::pos_type pos_type; ^ detected during instantiation of class "std::basic_istream<_CharT, _Traits> [with _CharT=wchar_t, _Traits=]" at line 610 /usr/include/c++/4.4.6/istream(62): error: name followed by "::" must be a class or namespace name typedef typename _Traits::off_type off_type; ^ detected during instantiation of class "std::basic_istream<_CharT, _Traits> [with _CharT=wchar_t, _Traits=]" at line 610 /usr/include/c++/4.4.6/istream(640): error: name followed by "::" must be a class or namespace name typedef typename _Traits::int_type __int_type; ^ detected during instantiation of class "std::basic_istream<_CharT, _Traits>::sentry [with _CharT=char, _Traits=]" at line 971 of "/usr/include/c++/4.4.6/bits/istream.tcc" /usr/include/c++/4.4.6/istream(772): error: name followed by "::" must be a class or namespace name typedef typename _Traits::int_type int_type; ^ detected during instantiation of class "std::basic_iostream<_CharT, _Traits> [with _CharT=char, _Traits=]" at line 994 of "/usr/include/c++/4.4.6/bits/istream.tcc" /usr/include/c++/4.4.6/istream(773): error: name followed by "::" must be a class or namespace name typedef typename _Traits::pos_type pos_type; ^ detected during instantiation of class "std::basic_iostream<_CharT, _Traits> [with _CharT=char, _Traits=]" at line 994 of "/usr/include/c++/4.4.6/bits/istream.tcc" /usr/include/c++/4.4.6/istream(774): error: name followed by "::" must be a class or namespace name typedef typename _Traits::off_type off_type; ^ detected during instantiation of class "std::basic_iostream<_CharT, _Traits> [with _CharT=char, _Traits=]" at line 994 of "/usr/include/c++/4.4.6/bits/istream.tcc" /usr/include/c++/4.4.6/istream(640): error: name followed by "::" must be a class or namespace name typedef typename _Traits::int_type __int_type; ^ detected during instantiation of class "std::basic_istream<_CharT, _Traits>::sentry [with _CharT=wchar_t, _Traits=]" at line 997 of "/usr/include/c++/4.4.6/bits/istream.tcc" compilation aborted for int03.cpp (code 4)