Detalii evaluare #50511189

Rezumat problemă

#3985 suma_c2

Se dau n numere naturale. Calculați suma celor care au exact două cifre.

Detalii

Problema suma_c2 Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #50511189 Utilizator Tarța Robert (fr0z3n)
Fișier suma_c2.cpp Dimensiune 228 B
Data încărcării 12 Aprilie 2024, 10:23 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

suma_c2.cpp:1:14: error: expected '{' before ';' token
 namespace std;

              ^
In file included from /usr/include/c++/4.8/bits/postypes.h:40:0,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/cwchar:64:11: error: '::mbstate_t' has not been declared
   using ::mbstate_t;
           ^
/usr/include/c++/4.8/cwchar:139:11: error: '::wint_t' has not been declared
   using ::wint_t;
           ^
/usr/include/c++/4.8/cwchar:141:11: error: '::btowc' has not been declared
   using ::btowc;
           ^
/usr/include/c++/4.8/cwchar:142:11: error: '::fgetwc' has not been declared
   using ::fgetwc;
           ^
/usr/include/c++/4.8/cwchar:143:11: error: '::fgetws' has not been declared
   using ::fgetws;
           ^
/usr/include/c++/4.8/cwchar:144:11: error: '::fputwc' has not been declared
   using ::fputwc;
           ^
/usr/include/c++/4.8/cwchar:145:11: error: '::fputws' has not been declared
   using ::fputws;
           ^
/usr/include/c++/4.8/cwchar:146:11: error: '::fwide' has not been declared
   using ::fwide;
           ^
/usr/include/c++/4.8/cwchar:147:11: error: '::fwprintf' has not been declared
   using ::fwprintf;
           ^
/usr/include/c++/4.8/cwchar:148:11: error: '::fwscanf' has not been declared
   using ::fwscanf;
           ^
/usr/include/c++/4.8/cwchar:149:11: error: '::getwc' has not been declared
   using ::getwc;
           ^
/usr/include/c++/4.8/cwchar:150:11: error: '::getwchar' has not been declared
   using ::getwchar;
           ^
/usr/include/c++/4.8/cwchar:151:11: error: '::mbrlen' has not been declared
   using ::mbrlen;
           ^
/usr/include/c++/4.8/cwchar:152:11: error: '::mbrtowc' has not been declared
   using ::mbrtowc;
           ^
/usr/include/c++/4.8/cwchar:153:11: error: '::mbsinit' has not been declared
   using ::mbsinit;
           ^
/usr/include/c++/4.8/cwchar:154:11: error: '::mbsrtowcs' has not been declared
   using ::mbsrtowcs;
           ^
/usr/include/c++/4.8/cwchar:155:11: error: '::putwc' has not been declared
   using ::putwc;
           ^
/usr/include/c++/4.8/cwchar:156:11: error: '::putwchar' has not been declared
   using ::putwchar;
           ^
/usr/include/c++/4.8/cwchar:158:11: error: '::swprintf' has not been declared
   using ::swprintf;
           ^
/usr/include/c++/4.8/cwchar:160:11: error: '::swscanf' has not been declared
   using ::swscanf;
           ^
/usr/include/c++/4.8/cwchar:161:11: error: '::ungetwc' has not been declared
   using ::ungetwc;
           ^
/usr/include/c++/4.8/cwchar:162:11: error: '::vfwprintf' has not been declared
   using ::vfwprintf;
           ^
/usr/include/c++/4.8/cwchar:164:11: error: '::vfwscanf' has not been declared
   using ::vfwscanf;
           ^
/usr/include/c++/4.8/cwchar:167:11: error: '::vswprintf' has not been declared
   using ::vswprintf;
           ^
/usr/include/c++/4.8/cwchar:170:11: error: '::vswscanf' has not been declared
   using ::vswscanf;
           ^
/usr/include/c++/4.8/cwchar:172:11: error: '::vwprintf' has not been declared
   using ::vwprintf;
           ^
/usr/include/c++/4.8/cwchar:174:11: error: '::vwscanf' has not been declared
   using ::vwscanf;
           ^
/usr/include/c++/4.8/cwchar:176:11: error: '::wcrtomb' has not been declared
   using ::wcrtomb;
           ^
/usr/include/c++/4.8/cwchar:177:11: error: '::wcscat' has not been declared
   using ::wcscat;
           ^
/usr/include/c++/4.8/cwchar:178:11: error: '::wcscmp' has not been declared
   using ::wcscmp;
           ^
/usr/include/c++/4.8/cwchar:179:11: error: '::wcscoll' has not been declared
   using ::wcscoll;
           ^
/usr/include/c++/4.8/cwchar:180:11: error: '::wcscpy' has not been declared
   using ::wcscpy;
           ^
/usr/include/c++/4.8/cwchar:181:11: error: '::wcscspn' has not been declared
   using ::wcscspn;
           ^
/usr/include/c++/4.8/cwchar:182:11: error: '::wcsftime' has not been declared
   using ::wcsftime;
           ^
/usr/include/c++/4.8/cwchar:183:11: error: '::wcslen' has not been declared
   using ::wcslen;
           ^
/usr/include/c++/4.8/cwchar:184:11: error: '::wcsncat' has not been declared
   using ::wcsncat;
           ^
/usr/include/c++/4.8/cwchar:185:11: error: '::wcsncmp' has not been declared
   using ::wcsncmp;
           ^
/usr/include/c++/4.8/cwchar:186:11: error: '::wcsncpy' has not been declared
   using ::wcsncpy;
           ^
/usr/include/c++/4.8/cwchar:187:11: error: '::wcsrtombs' has not been declared
   using ::wcsrtombs;
           ^
/usr/include/c++/4.8/cwchar:188:11: error: '::wcsspn' has not been declared
   using ::wcsspn;
           ^
/usr/include/c++/4.8/cwchar:189:11: error: '::wcstod' has not been declared
   using ::wcstod;
           ^
/usr/include/c++/4.8/cwchar:191:11: error: '::wcstof' has not been declared
   using ::wcstof;
           ^
/usr/include/c++/4.8/cwchar:193:11: error: '::wcstok' has not been declared
   using ::wcstok;
           ^
/usr/include/c++/4.8/cwchar:194:11: error: '::wcstol' has not been declared
   using ::wcstol;
           ^
/usr/include/c++/4.8/cwchar:195:11: error: '::wcstoul' has not been declared
   using ::wcstoul;
           ^
/usr/include/c++/4.8/cwchar:196:11: error: '::wcsxfrm' has not been declared
   using ::wcsxfrm;
           ^
/usr/include/c++/4.8/cwchar:197:11: error: '::wctob' has not been declared
   using ::wctob;
           ^
/usr/include/c++/4.8/cwchar:198:11: error: '::wmemcmp' has not been declared
   using ::wmemcmp;
           ^
/usr/include/c++/4.8/cwchar:199:11: error: '::wmemcpy' has not been declared
   using ::wmemcpy;
           ^
/usr/include/c++/4.8/cwchar:200:11: error: '::wmemmove' has not been declared
   using ::wmemmove;
           ^
/usr/include/c++/4.8/cwchar:201:11: error: '::wmemset' has not been declared
   using ::wmemset;
           ^
/usr/include/c++/4.8/cwchar:202:11: error: '::wprintf' has not been declared
   using ::wprintf;
           ^
/usr/include/c++/4.8/cwchar:203:11: error: '::wscanf' has not been declared
   using ::wscanf;
           ^
/usr/include/c++/4.8/cwchar:204:11: error: '::wcschr' has not been declared
   using ::wcschr;
           ^
/usr/include/c++/4.8/cwchar:205:11: error: '::wcspbrk' has not been declared
   using ::wcspbrk;
           ^
/usr/include/c++/4.8/cwchar:206:11: error: '::wcsrchr' has not been declared
   using ::wcsrchr;
           ^
/usr/include/c++/4.8/cwchar:207:11: error: '::wcsstr' has not been declared
   using ::wcsstr;
           ^
/usr/include/c++/4.8/cwchar:208:11: error: '::wmemchr' has not been declared
   using ::wmemchr;
           ^
/usr/include/c++/4.8/cwchar:248:11: error: '::wcstold' has not been declared
   using ::wcstold;
           ^
/usr/include/c++/4.8/cwchar:257:11: error: '::wcstoll' has not been declared
   using ::wcstoll;
           ^
/usr/include/c++/4.8/cwchar:258:11: error: '::wcstoull' has not been declared
   using ::wcstoull;
           ^
/usr/include/c++/4.8/cwchar:264:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::wcstold;
           ^
/usr/include/c++/4.8/cwchar:265:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::wcstoll;
           ^
/usr/include/c++/4.8/cwchar:266:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::wcstoull;
           ^
/usr/include/c++/4.8/cwchar:280:14: error: 'std::std::wcstof' has not been declared
   using std::wcstof;
              ^
/usr/include/c++/4.8/cwchar:283:14: error: 'std::std::vfwscanf' has not been declared
   using std::vfwscanf;
              ^
/usr/include/c++/4.8/cwchar:286:14: error: 'std::std::vswscanf' has not been declared
   using std::vswscanf;
              ^
/usr/include/c++/4.8/cwchar:289:14: error: 'std::std::vwscanf' has not been declared
   using std::vwscanf;
              ^
/usr/include/c++/4.8/cwchar:293:14: error: 'std::std::wcstold' has not been declared
   using std::wcstold;
              ^
/usr/include/c++/4.8/cwchar:294:14: error: 'std::std::wcstoll' has not been declared
   using std::wcstoll;
              ^
/usr/include/c++/4.8/cwchar:295:14: error: 'std::std::wcstoull' has not been declared
   using std::wcstoull;
              ^
In file included from /usr/include/c++/4.8/ios:40:0,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/char_traits.h:63:15: error: 'mbstate_t' in namespace 'std::std' does not name a type
       typedef std::mbstate_t  state_type;
               ^
In file included from /usr/include/c++/4.8/bits/char_traits.h:376:0,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/cstdint:48:11: error: '::int8_t' has not been declared
   using ::int8_t;
           ^
/usr/include/c++/4.8/cstdint:49:11: error: '::int16_t' has not been declared
   using ::int16_t;
           ^
/usr/include/c++/4.8/cstdint:50:11: error: '::int32_t' has not been declared
   using ::int32_t;
           ^
/usr/include/c++/4.8/cstdint:51:11: error: '::int64_t' has not been declared
   using ::int64_t;
           ^
/usr/include/c++/4.8/cstdint:53:11: error: '::int_fast8_t' has not been declared
   using ::int_fast8_t;
           ^
/usr/include/c++/4.8/cstdint:54:11: error: '::int_fast16_t' has not been declared
   using ::int_fast16_t;
           ^
/usr/include/c++/4.8/cstdint:55:11: error: '::int_fast32_t' has not been declared
   using ::int_fast32_t;
           ^
/usr/include/c++/4.8/cstdint:56:11: error: '::int_fast64_t' has not been declared
   using ::int_fast64_t;
           ^
/usr/include/c++/4.8/cstdint:58:11: error: '::int_least8_t' has not been declared
   using ::int_least8_t;
           ^
/usr/include/c++/4.8/cstdint:59:11: error: '::int_least16_t' has not been declared
   using ::int_least16_t;
           ^
/usr/include/c++/4.8/cstdint:60:11: error: '::int_least32_t' has not been declared
   using ::int_least32_t;
           ^
/usr/include/c++/4.8/cstdint:61:11: error: '::int_least64_t' has not been declared
   using ::int_least64_t;
           ^
/usr/include/c++/4.8/cstdint:63:11: error: '::intmax_t' has not been declared
   using ::intmax_t;
           ^
/usr/include/c++/4.8/cstdint:64:11: error: '::intptr_t' has not been declared
   using ::intptr_t;
           ^
/usr/include/c++/4.8/cstdint:66:11: error: '::uint8_t' has not been declared
   using ::uint8_t;
           ^
/usr/include/c++/4.8/cstdint:67:11: error: '::uint16_t' has not been declared
   using ::uint16_t;
           ^
/usr/include/c++/4.8/cstdint:68:11: error: '::uint32_t' has not been declared
   using ::uint32_t;
           ^
/usr/include/c++/4.8/cstdint:69:11: error: '::uint64_t' has not been declared
   using ::uint64_t;
           ^
/usr/include/c++/4.8/cstdint:71:11: error: '::uint_fast8_t' has not been declared
   using ::uint_fast8_t;
           ^
/usr/include/c++/4.8/cstdint:72:11: error: '::uint_fast16_t' has not been declared
   using ::uint_fast16_t;
           ^
/usr/include/c++/4.8/cstdint:73:11: error: '::uint_fast32_t' has not been declared
   using ::uint_fast32_t;
           ^
/usr/include/c++/4.8/cstdint:74:11: error: '::uint_fast64_t' has not been declared
   using ::uint_fast64_t;
           ^
/usr/include/c++/4.8/cstdint:76:11: error: '::uint_least8_t' has not been declared
   using ::uint_least8_t;
           ^
/usr/include/c++/4.8/cstdint:77:11: error: '::uint_least16_t' has not been declared
   using ::uint_least16_t;
           ^
/usr/include/c++/4.8/cstdint:78:11: error: '::uint_least32_t' has not been declared
   using ::uint_least32_t;
           ^
/usr/include/c++/4.8/cstdint:79:11: error: '::uint_least64_t' has not been declared
   using ::uint_least64_t;
           ^
/usr/include/c++/4.8/cstdint:81:11: error: '::uintmax_t' has not been declared
   using ::uintmax_t;
           ^
/usr/include/c++/4.8/cstdint:82:11: error: '::uintptr_t' has not been declared
   using ::uintptr_t;
           ^
In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/c++locale.h:41:0,
                 from /usr/include/c++/4.8/bits/localefwd.h:40,
                 from /usr/include/c++/4.8/ios:41,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/clocale:53:11: error: '::lconv' has not been declared
   using ::lconv;
           ^
/usr/include/c++/4.8/clocale:54:11: error: '::setlocale' has not been declared
   using ::setlocale;
           ^
/usr/include/c++/4.8/clocale:55:11: error: '::localeconv' has not been declared
   using ::localeconv;
           ^
In file included from /usr/include/c++/4.8/bits/localefwd.h:42:0,
                 from /usr/include/c++/4.8/ios:41,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/cctype:64:11: error: '::isalnum' has not been declared
   using ::isalnum;
           ^
/usr/include/c++/4.8/cctype:65:11: error: '::isalpha' has not been declared
   using ::isalpha;
           ^
/usr/include/c++/4.8/cctype:66:11: error: '::iscntrl' has not been declared
   using ::iscntrl;
           ^
/usr/include/c++/4.8/cctype:67:11: error: '::isdigit' has not been declared
   using ::isdigit;
           ^
/usr/include/c++/4.8/cctype:68:11: error: '::isgraph' has not been declared
   using ::isgraph;
           ^
/usr/include/c++/4.8/cctype:69:11: error: '::islower' has not been declared
   using ::islower;
           ^
/usr/include/c++/4.8/cctype:70:11: error: '::isprint' has not been declared
   using ::isprint;
           ^
/usr/include/c++/4.8/cctype:71:11: error: '::ispunct' has not been declared
   using ::ispunct;
           ^
/usr/include/c++/4.8/cctype:72:11: error: '::isspace' has not been declared
   using ::isspace;
           ^
/usr/include/c++/4.8/cctype:73:11: error: '::isupper' has not been declared
   using ::isupper;
           ^
/usr/include/c++/4.8/cctype:74:11: error: '::isxdigit' has not been declared
   using ::isxdigit;
           ^
/usr/include/c++/4.8/cctype:75:11: error: '::tolower' has not been declared
   using ::tolower;
           ^
/usr/include/c++/4.8/cctype:76:11: error: '::toupper' has not been declared
   using ::toupper;
           ^
/usr/include/c++/4.8/cctype:87:11: error: '::isblank' has not been declared
   using ::isblank;
           ^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33,
                 from /usr/include/c++/4.8/bits/allocator.h:46,
                 from /usr/include/c++/4.8/string:41,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/new:92:41: error: 'void* std::operator new(std::std::size_t)' may not be declared within a namespace
   __attribute__((__externally_visible__));
                                         ^
/usr/include/c++/4.8/new:94:41: error: 'void* std::operator new [](std::std::size_t)' may not be declared within a namespace
   __attribute__((__externally_visible__));
                                         ^
/usr/include/c++/4.8/new:96:41: error: 'void std::operator delete(void*)' may not be declared within a namespace
   __attribute__((__externally_visible__));
                                         ^
/usr/include/c++/4.8/new:98:41: error: 'void std::operator delete [](void*)' may not be declared within a namespace
   __attribute__((__externally_visible__));
                                         ^
/usr/include/c++/4.8/new:100:41: error: 'void* std::operator new(std::std::size_t, const std::std::nothrow_t&)' may not be declared within a namespace
   __attribute__((__externally_visible__));
                                         ^
/usr/include/c++/4.8/new:102:41: error: 'void* std::operator new [](std::std::size_t, const std::std::nothrow_t&)' may not be declared within a namespace
   __attribute__((__externally_visible__));
                                         ^
/usr/include/c++/4.8/new:104:41: error: 'void std::operator delete(void*, const std::std::nothrow_t&)' may not be declared within a namespace
   __attribute__((__externally_visible__));
                                         ^
/usr/include/c++/4.8/new:106:41: error: 'void std::operator delete [](void*, const std::std::nothrow_t&)' may not be declared within a namespace
   __attribute__((__externally_visible__));
                                         ^
In file included from /usr/include/c++/4.8/iostream:38:0,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/new:109:51: error: 'void* std::operator new(std::std::size_t, void*)' may not be declared within a namespace
 inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                                   ^
/usr/include/c++/4.8/new:111:53: error: 'void* std::operator new [](std::std::size_t, void*)' may not be declared within a namespace
 inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                                     ^
/usr/include/c++/4.8/new:115:45: error: 'void std::operator delete(void*, void*)' may not be declared within a namespace
 inline void operator delete  (void*, void*) _GLIBCXX_USE_NOEXCEPT { }
                                             ^
/usr/include/c++/4.8/new:116:45: error: 'void std::operator delete [](void*, void*)' may not be declared within a namespace
 inline void operator delete[](void*, void*) _GLIBCXX_USE_NOEXCEPT { }
                                             ^
In file included from /usr/include/c++/4.8/ext/string_conversions.h:41:0,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/cstdlib:118:11: error: '::div_t' has not been declared
   using ::div_t;
           ^
/usr/include/c++/4.8/cstdlib:119:11: error: '::ldiv_t' has not been declared
   using ::ldiv_t;
           ^
/usr/include/c++/4.8/cstdlib:121:11: error: '::abort' has not been declared
   using ::abort;
           ^
/usr/include/c++/4.8/cstdlib:122:11: error: '::abs' has not been declared
   using ::abs;
           ^
/usr/include/c++/4.8/cstdlib:123:11: error: '::atexit' has not been declared
   using ::atexit;
           ^
/usr/include/c++/4.8/cstdlib:126:11: error: '::at_quick_exit' has not been declared
   using ::at_quick_exit;
           ^
/usr/include/c++/4.8/cstdlib:129:11: error: '::atof' has not been declared
   using ::atof;
           ^
/usr/include/c++/4.8/cstdlib:130:11: error: '::atoi' has not been declared
   using ::atoi;
           ^
/usr/include/c++/4.8/cstdlib:131:11: error: '::atol' has not been declared
   using ::atol;
           ^
/usr/include/c++/4.8/cstdlib:132:11: error: '::bsearch' has not been declared
   using ::bsearch;
           ^
/usr/include/c++/4.8/cstdlib:133:11: error: '::calloc' has not been declared
   using ::calloc;
           ^
/usr/include/c++/4.8/cstdlib:134:11: error: '::div' has not been declared
   using ::div;
           ^
/usr/include/c++/4.8/cstdlib:135:11: error: '::exit' has not been declared
   using ::exit;
           ^
/usr/include/c++/4.8/cstdlib:136:11: error: '::free' has not been declared
   using ::free;
           ^
/usr/include/c++/4.8/cstdlib:137:11: error: '::getenv' has not been declared
   using ::getenv;
           ^
/usr/include/c++/4.8/cstdlib:138:11: error: '::labs' has not been declared
   using ::labs;
           ^
/usr/include/c++/4.8/cstdlib:139:11: error: '::ldiv' has not been declared
   using ::ldiv;
           ^
/usr/include/c++/4.8/cstdlib:140:11: error: '::malloc' has not been declared
   using ::malloc;
           ^
/usr/include/c++/4.8/cstdlib:142:11: error: '::mblen' has not been declared
   using ::mblen;
           ^
/usr/include/c++/4.8/cstdlib:143:11: error: '::mbstowcs' has not been declared
   using ::mbstowcs;
           ^
/usr/include/c++/4.8/cstdlib:144:11: error: '::mbtowc' has not been declared
   using ::mbtowc;
           ^
/usr/include/c++/4.8/cstdlib:146:11: error: '::qsort' has not been declared
   using ::qsort;
           ^
/usr/include/c++/4.8/cstdlib:149:11: error: '::quick_exit' has not been declared
   using ::quick_exit;
           ^
/usr/include/c++/4.8/cstdlib:152:11: error: '::rand' has not been declared
   using ::rand;
           ^
/usr/include/c++/4.8/cstdlib:153:11: error: '::realloc' has not been declared
   using ::realloc;
           ^
/usr/include/c++/4.8/cstdlib:154:11: error: '::srand' has not been declared
   using ::srand;
           ^
/usr/include/c++/4.8/cstdlib:155:11: error: '::strtod' has not been declared
   using ::strtod;
           ^
/usr/include/c++/4.8/cstdlib:156:11: error: '::strtol' has not been declared
   using ::strtol;
           ^
/usr/include/c++/4.8/cstdlib:157:11: error: '::strtoul' has not been declared
   using ::strtoul;
           ^
/usr/include/c++/4.8/cstdlib:158:11: error: '::system' has not been declared
   using ::system;
           ^
/usr/include/c++/4.8/cstdlib:160:11: error: '::wcstombs' has not been declared
   using ::wcstombs;
           ^
/usr/include/c++/4.8/cstdlib:161:11: error: '::wctomb' has not been declared
   using ::wctomb;
           ^
/usr/include/c++/4.8/cstdlib:201:11: error: '::lldiv_t' has not been declared
   using ::lldiv_t;
           ^
/usr/include/c++/4.8/cstdlib:207:11: error: '::_Exit' has not been declared
   using ::_Exit;
           ^
/usr/include/c++/4.8/cstdlib:211:11: error: '::llabs' has not been declared
   using ::llabs;
           ^
/usr/include/c++/4.8/cstdlib:217:11: error: '::lldiv' has not been declared
   using ::lldiv;
           ^
/usr/include/c++/4.8/cstdlib:228:11: error: '::atoll' has not been declared
   using ::atoll;
           ^
/usr/include/c++/4.8/cstdlib:229:11: error: '::strtoll' has not been declared
   using ::strtoll;
           ^
/usr/include/c++/4.8/cstdlib:230:11: error: '::strtoull' has not been declared
   using ::strtoull;
           ^
/usr/include/c++/4.8/cstdlib:232:11: error: '::strtof' has not been declared
   using ::strtof;
           ^
/usr/include/c++/4.8/cstdlib:233:11: error: '::strtold' has not been declared
   using ::strtold;
           ^
/usr/include/c++/4.8/cstdlib:241:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::lldiv_t;
           ^
/usr/include/c++/4.8/cstdlib:243:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::_Exit;
           ^
/usr/include/c++/4.8/cstdlib:245:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::llabs;
           ^
/usr/include/c++/4.8/cstdlib:246:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::div;
           ^
/usr/include/c++/4.8/cstdlib:247:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::lldiv;
           ^
/usr/include/c++/4.8/cstdlib:249:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::atoll;
           ^
/usr/include/c++/4.8/cstdlib:250:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::strtof;
           ^
/usr/include/c++/4.8/cstdlib:251:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::strtoll;
           ^
/usr/include/c++/4.8/cstdlib:252:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::strtoull;
           ^
/usr/include/c++/4.8/cstdlib:253:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::strtold;
           ^
In file included from /usr/include/c++/4.8/ext/string_conversions.h:43:0,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/cstdio:96:11: error: '::FILE' has not been declared
   using ::FILE;
           ^
/usr/include/c++/4.8/cstdio:97:11: error: '::fpos_t' has not been declared
   using ::fpos_t;
           ^
/usr/include/c++/4.8/cstdio:99:11: error: '::clearerr' has not been declared
   using ::clearerr;
           ^
/usr/include/c++/4.8/cstdio:100:11: error: '::fclose' has not been declared
   using ::fclose;
           ^
/usr/include/c++/4.8/cstdio:101:11: error: '::feof' has not been declared
   using ::feof;
           ^
/usr/include/c++/4.8/cstdio:102:11: error: '::ferror' has not been declared
   using ::ferror;
           ^
/usr/include/c++/4.8/cstdio:103:11: error: '::fflush' has not been declared
   using ::fflush;
           ^
/usr/include/c++/4.8/cstdio:104:11: error: '::fgetc' has not been declared
   using ::fgetc;
           ^
/usr/include/c++/4.8/cstdio:105:11: error: '::fgetpos' has not been declared
   using ::fgetpos;
           ^
/usr/include/c++/4.8/cstdio:106:11: error: '::fgets' has not been declared
   using ::fgets;
           ^
/usr/include/c++/4.8/cstdio:107:11: error: '::fopen' has not been declared
   using ::fopen;
           ^
/usr/include/c++/4.8/cstdio:108:11: error: '::fprintf' has not been declared
   using ::fprintf;
           ^
/usr/include/c++/4.8/cstdio:109:11: error: '::fputc' has not been declared
   using ::fputc;
           ^
/usr/include/c++/4.8/cstdio:110:11: error: '::fputs' has not been declared
   using ::fputs;
           ^
/usr/include/c++/4.8/cstdio:111:11: error: '::fread' has not been declared
   using ::fread;
           ^
/usr/include/c++/4.8/cstdio:112:11: error: '::freopen' has not been declared
   using ::freopen;
           ^
/usr/include/c++/4.8/cstdio:113:11: error: '::fscanf' has not been declared
   using ::fscanf;
           ^
/usr/include/c++/4.8/cstdio:114:11: error: '::fseek' has not been declared
   using ::fseek;
           ^
/usr/include/c++/4.8/cstdio:115:11: error: '::fsetpos' has not been declared
   using ::fsetpos;
           ^
/usr/include/c++/4.8/cstdio:116:11: error: '::ftell' has not been declared
   using ::ftell;
           ^
/usr/include/c++/4.8/cstdio:117:11: error: '::fwrite' has not been declared
   using ::fwrite;
           ^
/usr/include/c++/4.8/cstdio:118:11: error: '::getc' has not been declared
   using ::getc;
           ^
/usr/include/c++/4.8/cstdio:119:11: error: '::getchar' has not been declared
   using ::getchar;
           ^
/usr/include/c++/4.8/cstdio:120:11: error: '::gets' has not been declared
   using ::gets;
           ^
/usr/include/c++/4.8/cstdio:121:11: error: '::perror' has not been declared
   using ::perror;
           ^
/usr/include/c++/4.8/cstdio:122:11: error: '::printf' has not been declared
   using ::printf;
           ^
/usr/include/c++/4.8/cstdio:123:11: error: '::putc' has not been declared
   using ::putc;
           ^
/usr/include/c++/4.8/cstdio:124:11: error: '::putchar' has not been declared
   using ::putchar;
           ^
/usr/include/c++/4.8/cstdio:125:11: error: '::puts' has not been declared
   using ::puts;
           ^
/usr/include/c++/4.8/cstdio:126:11: error: '::remove' has not been declared
   using ::remove;
           ^
/usr/include/c++/4.8/cstdio:127:11: error: '::rename' has not been declared
   using ::rename;
           ^
/usr/include/c++/4.8/cstdio:128:11: error: '::rewind' has not been declared
   using ::rewind;
           ^
/usr/include/c++/4.8/cstdio:129:11: error: '::scanf' has not been declared
   using ::scanf;
           ^
/usr/include/c++/4.8/cstdio:130:11: error: '::setbuf' has not been declared
   using ::setbuf;
           ^
/usr/include/c++/4.8/cstdio:131:11: error: '::setvbuf' has not been declared
   using ::setvbuf;
           ^
/usr/include/c++/4.8/cstdio:132:11: error: '::sprintf' has not been declared
   using ::sprintf;
           ^
/usr/include/c++/4.8/cstdio:133:11: error: '::sscanf' has not been declared
   using ::sscanf;
           ^
/usr/include/c++/4.8/cstdio:134:11: error: '::tmpfile' has not been declared
   using ::tmpfile;
           ^
/usr/include/c++/4.8/cstdio:135:11: error: '::tmpnam' has not been declared
   using ::tmpnam;
           ^
/usr/include/c++/4.8/cstdio:136:11: error: '::ungetc' has not been declared
   using ::ungetc;
           ^
/usr/include/c++/4.8/cstdio:137:11: error: '::vfprintf' has not been declared
   using ::vfprintf;
           ^
/usr/include/c++/4.8/cstdio:138:11: error: '::vprintf' has not been declared
   using ::vprintf;
           ^
/usr/include/c++/4.8/cstdio:139:11: error: '::vsprintf' has not been declared
   using ::vsprintf;
           ^
/usr/include/c++/4.8/cstdio:168:11: error: '::snprintf' has not been declared
   using ::snprintf;
           ^
/usr/include/c++/4.8/cstdio:169:11: error: '::vfscanf' has not been declared
   using ::vfscanf;
           ^
/usr/include/c++/4.8/cstdio:170:11: error: '::vscanf' has not been declared
   using ::vscanf;
           ^
/usr/include/c++/4.8/cstdio:171:11: error: '::vsnprintf' has not been declared
   using ::vsnprintf;
           ^
/usr/include/c++/4.8/cstdio:172:11: error: '::vsscanf' has not been declared
   using ::vsscanf;
           ^
/usr/include/c++/4.8/cstdio:178:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::snprintf;
           ^
/usr/include/c++/4.8/cstdio:179:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::vfscanf;
           ^
/usr/include/c++/4.8/cstdio:180:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::vscanf;
           ^
/usr/include/c++/4.8/cstdio:181:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::vsnprintf;
           ^
/usr/include/c++/4.8/cstdio:182:11: error: '::__gnu_cxx' has not been declared
   using ::__gnu_cxx::vsscanf;
           ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'int std::std::stoi(const string&, std::std::size_t*, int)':
/usr/include/c++/4.8/bits/basic_string.h:2824:42: error: 'strtol' is not a member of 'std::std'
   { return __gnu_cxx::__stoa<long, int>(&std::strtol, "stoi", __str.c_str(),
                                          ^
/usr/include/c++/4.8/bits/basic_string.h:2824:42: note: suggested alternative:
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/stdlib.h:183:17: note:   'std::strtol'
 extern long int strtol (const char *__restrict __nptr,
                 ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'long int std::std::stol(const string&, std::std::size_t*, int)':
/usr/include/c++/4.8/bits/basic_string.h:2829:31: error: 'strtol' is not a member of 'std::std'
   { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(),
                               ^
/usr/include/c++/4.8/bits/basic_string.h:2829:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/stdlib.h:183:17: note:   'std::strtol'
 extern long int strtol (const char *__restrict __nptr,
                 ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'long unsigned int std::std::stoul(const string&, std::std::size_t*, int)':
/usr/include/c++/4.8/bits/basic_string.h:2834:31: error: 'strtoul' is not a member of 'std::std'
   { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(),
                               ^
/usr/include/c++/4.8/bits/basic_string.h:2834:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/stdlib.h:187:26: note:   'std::strtoul'
 extern unsigned long int strtoul (const char *__restrict __nptr,
                          ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'long long int std::std::stoll(const string&, std::std::size_t*, int)':
/usr/include/c++/4.8/bits/basic_string.h:2839:31: error: 'strtoll' is not a member of 'std::std'
   { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(),
                               ^
/usr/include/c++/4.8/bits/basic_string.h:2839:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/stdlib.h:209:22: note:   'std::strtoll'
 extern long long int strtoll (const char *__restrict __nptr,
                      ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'long long unsigned int std::std::stoull(const string&, std::std::size_t*, int)':
/usr/include/c++/4.8/bits/basic_string.h:2844:31: error: 'strtoull' is not a member of 'std::std'
   { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(),
                               ^
/usr/include/c++/4.8/bits/basic_string.h:2844:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/stdlib.h:214:31: note:   'std::strtoull'
 extern unsigned long long int strtoull (const char *__restrict __nptr,
                               ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'float std::std::stof(const string&, std::std::size_t*)':
/usr/include/c++/4.8/bits/basic_string.h:2850:31: error: 'strtof' is not a member of 'std::std'
   { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); }
                               ^
/usr/include/c++/4.8/bits/basic_string.h:2850:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/stdlib.h:172:14: note:   'std::strtof'
 extern float strtof (const char *__restrict __nptr,
              ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'double std::std::stod(const string&, std::std::size_t*)':
/usr/include/c++/4.8/bits/basic_string.h:2854:31: error: 'strtod' is not a member of 'std::std'
   { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); }
                               ^
/usr/include/c++/4.8/bits/basic_string.h:2854:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/stdlib.h:164:15: note:   'std::strtod'
 extern double strtod (const char *__restrict __nptr,
               ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'long double std::std::stold(const string&, std::std::size_t*)':
/usr/include/c++/4.8/bits/basic_string.h:2858:31: error: 'strtold' is not a member of 'std::std'
   { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); }
                               ^
/usr/include/c++/4.8/bits/basic_string.h:2858:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/stdlib.h:175:20: note:   'std::strtold'
 extern long double strtold (const char *__restrict __nptr,
                    ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'std::std::string std::std::to_string(int)':
/usr/include/c++/4.8/bits/basic_string.h:2865:45: error: 'vsnprintf' is not a member of 'std::std'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, 4 * sizeof(int),
                                             ^
/usr/include/c++/4.8/bits/basic_string.h:2865:45: note: suggested alternative:
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426,
                 from /usr/include/c++/4.8/iostream:38,
                 from suma_c2.cpp:2:
/usr/include/i386-linux-gnu/bits/stdio2.h:74:1: note:   'std::vsnprintf'
 __NTH (vsnprintf (char *__restrict __s, size_t __n,
 ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'std::std::string std::std::to_string(unsigned int)':
/usr/include/c++/4.8/bits/basic_string.h:2870:45: error: 'vsnprintf' is not a member of 'std::std'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
                                             ^
/usr/include/c++/4.8/bits/basic_string.h:2870:45: note: suggested alternative:
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426,
                 from /usr/include/c++/4.8/iostream:38,
                 from suma_c2.cpp:2:
/usr/include/i386-linux-gnu/bits/stdio2.h:74:1: note:   'std::vsnprintf'
 __NTH (vsnprintf (char *__restrict __s, size_t __n,
 ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'std::std::string std::std::to_string(long int)':
/usr/include/c++/4.8/bits/basic_string.h:2876:45: error: 'vsnprintf' is not a member of 'std::std'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, 4 * sizeof(long),
                                             ^
/usr/include/c++/4.8/bits/basic_string.h:2876:45: note: suggested alternative:
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426,
                 from /usr/include/c++/4.8/iostream:38,
                 from suma_c2.cpp:2:
/usr/include/i386-linux-gnu/bits/stdio2.h:74:1: note:   'std::vsnprintf'
 __NTH (vsnprintf (char *__restrict __s, size_t __n,
 ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'std::std::string std::std::to_string(long unsigned int)':
/usr/include/c++/4.8/bits/basic_string.h:2881:45: error: 'vsnprintf' is not a member of 'std::std'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
                                             ^
/usr/include/c++/4.8/bits/basic_string.h:2881:45: note: suggested alternative:
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426,
                 from /usr/include/c++/4.8/iostream:38,
                 from suma_c2.cpp:2:
/usr/include/i386-linux-gnu/bits/stdio2.h:74:1: note:   'std::vsnprintf'
 __NTH (vsnprintf (char *__restrict __s, size_t __n,
 ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'std::std::string std::std::to_string(long long int)':
/usr/include/c++/4.8/bits/basic_string.h:2887:45: error: 'vsnprintf' is not a member of 'std::std'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
                                             ^
/usr/include/c++/4.8/bits/basic_string.h:2887:45: note: suggested alternative:
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426,
                 from /usr/include/c++/4.8/iostream:38,
                 from suma_c2.cpp:2:
/usr/include/i386-linux-gnu/bits/stdio2.h:74:1: note:   'std::vsnprintf'
 __NTH (vsnprintf (char *__restrict __s, size_t __n,
 ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'std::std::string std::std::to_string(long long unsigned int)':
/usr/include/c++/4.8/bits/basic_string.h:2893:45: error: 'vsnprintf' is not a member of 'std::std'
   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
                                             ^
/usr/include/c++/4.8/bits/basic_string.h:2893:45: note: suggested alternative:
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426,
                 from /usr/include/c++/4.8/iostream:38,
                 from suma_c2.cpp:2:
/usr/include/i386-linux-gnu/bits/stdio2.h:74:1: note:   'std::vsnprintf'
 __NTH (vsnprintf (char *__restrict __s, size_t __n,
 ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'std::std::string std::std::to_string(float)':
/usr/include/c++/4.8/bits/basic_string.h:2902:45: error: 'vsnprintf' is not a member of 'std::std'
     return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
                                             ^
/usr/include/c++/4.8/bits/basic_string.h:2902:45: note: suggested alternative:
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426,
                 from /usr/include/c++/4.8/iostream:38,
                 from suma_c2.cpp:2:
/usr/include/i386-linux-gnu/bits/stdio2.h:74:1: note:   'std::vsnprintf'
 __NTH (vsnprintf (char *__restrict __s, size_t __n,
 ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'std::std::string std::std::to_string(double)':
/usr/include/c++/4.8/bits/basic_string.h:2911:45: error: 'vsnprintf' is not a member of 'std::std'
     return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
                                             ^
/usr/include/c++/4.8/bits/basic_string.h:2911:45: note: suggested alternative:
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426,
                 from /usr/include/c++/4.8/iostream:38,
                 from suma_c2.cpp:2:
/usr/include/i386-linux-gnu/bits/stdio2.h:74:1: note:   'std::vsnprintf'
 __NTH (vsnprintf (char *__restrict __s, size_t __n,
 ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'std::std::string std::std::to_string(long double)':
/usr/include/c++/4.8/bits/basic_string.h:2920:45: error: 'vsnprintf' is not a member of 'std::std'
     return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
                                             ^
/usr/include/c++/4.8/bits/basic_string.h:2920:45: note: suggested alternative:
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426,
                 from /usr/include/c++/4.8/iostream:38,
                 from suma_c2.cpp:2:
/usr/include/i386-linux-gnu/bits/stdio2.h:74:1: note:   'std::vsnprintf'
 __NTH (vsnprintf (char *__restrict __s, size_t __n,
 ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'int std::std::stoi(const wstring&, std::std::size_t*, int)':
/usr/include/c++/4.8/bits/basic_string.h:2927:42: error: 'wcstol' is not a member of 'std::std'
   { return __gnu_cxx::__stoa<long, int>(&std::wcstol, "stoi", __str.c_str(),
                                          ^
/usr/include/c++/4.8/bits/basic_string.h:2927:42: note: suggested alternative:
In file included from /usr/include/c++/4.8/cwchar:44:0,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/wchar.h:468:17: note:   'std::wcstol'
 extern long int wcstol (const wchar_t *__restrict __nptr,
                 ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'long int std::std::stol(const wstring&, std::std::size_t*, int)':
/usr/include/c++/4.8/bits/basic_string.h:2932:31: error: 'wcstol' is not a member of 'std::std'
   { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(),
                               ^
/usr/include/c++/4.8/bits/basic_string.h:2932:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/cwchar:44:0,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/wchar.h:468:17: note:   'std::wcstol'
 extern long int wcstol (const wchar_t *__restrict __nptr,
                 ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'long unsigned int std::std::stoul(const wstring&, std::std::size_t*, int)':
/usr/include/c++/4.8/bits/basic_string.h:2937:31: error: 'wcstoul' is not a member of 'std::std'
   { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(),
                               ^
/usr/include/c++/4.8/bits/basic_string.h:2937:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/cwchar:44:0,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/wchar.h:473:26: note:   'std::wcstoul'
 extern unsigned long int wcstoul (const wchar_t *__restrict __nptr,
                          ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'long long int std::std::stoll(const wstring&, std::std::size_t*, int)':
/usr/include/c++/4.8/bits/basic_string.h:2942:31: error: 'wcstoll' is not a member of 'std::std'
   { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(),
                               ^
/usr/include/c++/4.8/bits/basic_string.h:2942:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/cwchar:44:0,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/wchar.h:483:22: note:   'std::wcstoll'
 extern long long int wcstoll (const wchar_t *__restrict __nptr,
                      ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'long long unsigned int std::std::stoull(const wstring&, std::std::size_t*, int)':
/usr/include/c++/4.8/bits/basic_string.h:2947:31: error: 'wcstoull' is not a member of 'std::std'
   { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(),
                               ^
/usr/include/c++/4.8/bits/basic_string.h:2947:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/cwchar:44:0,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/wchar.h:490:31: note:   'std::wcstoull'
 extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr,
                               ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'float std::std::stof(const wstring&, std::std::size_t*)':
/usr/include/c++/4.8/bits/basic_string.h:2953:31: error: 'wcstof' is not a member of 'std::std'
   { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); }
                               ^
/usr/include/c++/4.8/bits/basic_string.h:2953:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/cwchar:44:0,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/wchar.h:457:14: note:   'std::wcstof'
 extern float wcstof (const wchar_t *__restrict __nptr,
              ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'double std::std::stod(const wstring&, std::std::size_t*)':
/usr/include/c++/4.8/bits/basic_string.h:2957:31: error: 'wcstod' is not a member of 'std::std'
   { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); }
                               ^
/usr/include/c++/4.8/bits/basic_string.h:2957:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/cwchar:44:0,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/wchar.h:450:15: note:   'std::wcstod'
 extern double wcstod (const wchar_t *__restrict __nptr,
               ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'long double std::std::stold(const wstring&, std::std::size_t*)':
/usr/include/c++/4.8/bits/basic_string.h:2961:31: error: 'wcstold' is not a member of 'std::std'
   { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); }
                               ^
/usr/include/c++/4.8/bits/basic_string.h:2961:31: note: suggested alternative:
In file included from /usr/include/c++/4.8/cwchar:44:0,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/wchar.h:459:20: note:   'std::wcstold'
 extern long double wcstold (const wchar_t *__restrict __nptr,
                    ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/ostream:38,
                 from /usr/include/c++/4.8/iostream:39,
                 from suma_c2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'std::std::wstring std::std::to_wstring(int)':
/usr/include/c++/4.8/bits/basic_string.h:2966:46: error: 'vswprintf' is not a member of 'std::std'
   { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(int),
                                              ^
/usr/include/c++/4.8/bits/basic_string.h:2966:46: note: suggested alternative:
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426,
                 from /usr/include/c++/4.8/iostream:38,
                 from suma_c2.cpp:2:
/usr/include/i386-linux-gnu/bits/wchar2.h:315:1: note:   'std::vswprintf'
 __NTH (vswprintf (wchar_t *__restrict __s, size_t __n,
 ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/b

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema suma_c2 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.