#877
Gigel are un set de n
cuburi. Fiecare cub este marcat cu un număr natural, de la 1
la n
și i se cunoaște lungimea laturii – număr natural. Cu o parte dintre aceste cuburi Gigel va construi o stivă, astfel:
Să se afișeze numerele de pe cuburile existente la final în stivă, de la bază spre vârf.
Problema | Cuburi2 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58371839 | Utilizator | |
Fișier | cuburi2.cpp | Dimensiune | 1.10 KB |
Data încărcării | 29 Mai 2025, 21:41 | Scor / rezultat | Eroare de compilare |
cuburi2.cpp:1:1: error: 'include' does not name a type include <iostream> ^ 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/wchar.h:151:38: error: 'size_t' has not been declared const wchar_t *__restrict __src, size_t __n) ^ /usr/include/wchar.h:159:38: error: 'size_t' has not been declared const wchar_t *__restrict __src, size_t __n) ^ /usr/include/wchar.h:166:63: error: 'size_t' has not been declared extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) ^ /usr/include/wchar.h:176:4: error: 'size_t' has not been declared size_t __n) __THROW; ^ /usr/include/wchar.h:183:5: error: '__locale_t' has not been declared __locale_t __loc) __THROW; ^ /usr/include/wchar.h:186:6: error: 'size_t' has not been declared size_t __n, __locale_t __loc) __THROW; ^ /usr/include/wchar.h:186:18: error: '__locale_t' has not been declared size_t __n, __locale_t __loc) __THROW; ^ /usr/include/wchar.h:196:8: error: 'size_t' does not name a type extern size_t wcsxfrm (wchar_t *__restrict __s1, ^ /usr/include/wchar.h:207:9: error: '__locale_t' has not been declared __locale_t __loc) __THROW; ^ /usr/include/wchar.h:212:8: error: 'size_t' does not name a type extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, ^ /usr/include/wchar.h:252:8: error: 'size_t' does not name a type extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) ^ /usr/include/wchar.h:256:8: error: 'size_t' does not name a type extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) ^ /usr/include/wchar.h:287:8: error: 'size_t' does not name a type extern size_t wcslen (const wchar_t *__s) __THROW __attribute_pure__; ^ /usr/include/wchar.h:306:8: error: 'size_t' does not name a type extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) ^ /usr/include/wchar.h:314:59: error: 'size_t' has not been declared extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) ^ /usr/include/wchar.h:317:10: error: 'size_t' has not been declared size_t __n) ^ /usr/include/wchar.h:325:63: error: 'size_t' has not been declared extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) ^ /usr/include/wchar.h:330:37: error: 'size_t' has not been declared const wchar_t *__restrict __s2, size_t __n) __THROW; ^ /usr/include/wchar.h:334:63: error: 'size_t' has not been declared extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) ^ /usr/include/wchar.h:338:53: error: 'size_t' has not been declared extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __THROW; ^ /usr/include/wchar.h:345:38: error: 'size_t' has not been declared const wchar_t *__restrict __s2, size_t __n) ^ /usr/include/wchar.h:365:8: error: 'size_t' does not name a type extern size_t mbrtowc (wchar_t *__restrict __pwc, ^ /usr/include/wchar.h:370:8: error: 'size_t' does not name a type extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, ^ /usr/include/wchar.h:374:8: error: 'size_t' does not name a type extern size_t __mbrlen (const char *__restrict __s, size_t __n, ^ /usr/include/wchar.h:376:8: error: 'size_t' does not name a type extern size_t mbrlen (const char *__restrict __s, size_t __n, ^ /usr/include/wchar.h:398:17: error: 'size_t' does not name a type __extern_inline size_t ^ /usr/include/wchar.h:408:8: error: 'size_t' does not name a type extern size_t mbsrtowcs (wchar_t *__restrict __dst, ^ /usr/include/wchar.h:414:8: error: 'size_t' does not name a type extern size_t wcsrtombs (char *__restrict __dst, ^ /usr/include/wchar.h:423:8: error: 'size_t' does not name a type extern size_t mbsnrtowcs (wchar_t *__restrict __dst, ^ /usr/include/wchar.h:429:8: error: 'size_t' does not name a type extern size_t wcsnrtombs (char *__restrict __dst, ^ /usr/include/wchar.h:443:42: error: 'size_t' has not been declared extern int wcswidth (const wchar_t *__s, size_t __n) __THROW; ^ /usr/include/wchar.h:532:6: error: '__locale_t' has not been declared __locale_t __loc) __THROW; ^ /usr/include/wchar.h:536:21: error: '__locale_t' has not been declared int __base, __locale_t __loc) __THROW; ^ /usr/include/wchar.h:541:17: error: '__locale_t' has not been declared int __base, __locale_t __loc) __THROW; ^ /usr/include/wchar.h:546:20: error: '__locale_t' has not been declared int __base, __locale_t __loc) ^ /usr/include/wchar.h:550:35: error: '__locale_t' has not been declared wchar_t **__restrict __endptr, __locale_t __loc) ^ /usr/include/wchar.h:554:41: error: '__locale_t' has not been declared wchar_t **__restrict __endptr, __locale_t __loc) ^ /usr/include/wchar.h:559:10: error: '__locale_t' has not been declared __locale_t __loc) __THROW; ^ /usr/include/wchar.h:572:38: error: 'size_t' has not been declared const wchar_t *__restrict __src, size_t __n) ^ /usr/include/wchar.h:580:53: error: 'size_t' has not been declared extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) __THROW; ^ /usr/include/wchar.h:604:47: error: 'size_t' has not been declared extern int swprintf (wchar_t *__restrict __s, size_t __n, ^ /usr/include/wchar.h:625:48: error: 'size_t' has not been declared extern int vswprintf (wchar_t *__restrict __s, size_t __n, ^ /usr/include/wchar.h:855:8: error: 'size_t' does not name a type extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, ^ /usr/include/wchar.h:865:8: error: 'size_t' does not name a type extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h:25:43: error: 'size_t' has not been declared const wchar_t *__restrict __s2, size_t __n, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:26:11: error: 'size_t' has not been declared size_t __ns1) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/i386-linux-gnu/bits/wchar2.h:27:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wmemcpy_alias, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:31:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wmemcpy_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:31:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wmemcpy_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:39:1: error: 'size_t' has not been declared __NTH (wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: In function 'wchar_t* wmemcpy(wchar_t*, const wchar_t*, int)': /usr/include/i386-linux-gnu/bits/wchar2.h:42:25: error: 'size_t' was not declared in this scope if (__bos0 (__s1) != (size_t) -1) ^ /usr/include/i386-linux-gnu/bits/wchar2.h:42:25: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: At global scope: /usr/include/i386-linux-gnu/bits/wchar2.h:57:5: error: 'size_t' has not been declared size_t __n, size_t __ns1) __THROW; ^ /usr/include/i386-linux-gnu/bits/wchar2.h:57:17: error: 'size_t' has not been declared size_t __n, size_t __ns1) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/i386-linux-gnu/bits/wchar2.h:58:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wmemmove_alias, (wchar_t *__s1, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:61:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wmemmove_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:61:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wmemmove_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:68:1: error: 'size_t' has not been declared __NTH (wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n)) ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: In function 'wchar_t* wmemmove(wchar_t*, const wchar_t*, int)': /usr/include/i386-linux-gnu/bits/wchar2.h:70:25: error: 'size_t' was not declared in this scope if (__bos0 (__s1) != (size_t) -1) ^ /usr/include/i386-linux-gnu/bits/wchar2.h:70:25: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: At global scope: /usr/include/i386-linux-gnu/bits/wchar2.h:86:37: error: 'size_t' has not been declared const wchar_t *__restrict __s2, size_t __n, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:87:5: error: 'size_t' has not been declared size_t __ns1) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/i386-linux-gnu/bits/wchar2.h:88:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wmempcpy_alias, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:92:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wmempcpy_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:92:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wmempcpy_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:100:1: error: 'size_t' has not been declared __NTH (wmempcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: In function 'wchar_t* wmempcpy(wchar_t*, const wchar_t*, int)': /usr/include/i386-linux-gnu/bits/wchar2.h:103:25: error: 'size_t' was not declared in this scope if (__bos0 (__s1) != (size_t) -1) ^ /usr/include/i386-linux-gnu/bits/wchar2.h:103:25: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: At global scope: /usr/include/i386-linux-gnu/bits/wchar2.h:118:59: error: 'size_t' has not been declared extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:119:11: error: 'size_t' has not been declared size_t __ns) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/i386-linux-gnu/bits/wchar2.h:120:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wmemset_alias, (wchar_t *__s, wchar_t __c, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:122:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wmemset_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:122:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wmemset_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:129:1: error: 'size_t' has not been declared __NTH (wmemset (wchar_t *__s, wchar_t __c, size_t __n)) ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: In function 'wchar_t* wmemset(wchar_t*, wchar_t, int)': /usr/include/i386-linux-gnu/bits/wchar2.h:131:24: error: 'size_t' was not declared in this scope if (__bos0 (__s) != (size_t) -1) ^ /usr/include/i386-linux-gnu/bits/wchar2.h:131:24: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: At global scope: /usr/include/i386-linux-gnu/bits/wchar2.h:146:10: error: 'size_t' has not been declared size_t __n) __THROW; ^ /usr/include/i386-linux-gnu/bits/wchar2.h: In function 'wchar_t* wcscpy(wchar_t*, const wchar_t*)': /usr/include/i386-linux-gnu/bits/wchar2.h:154:26: error: 'size_t' was not declared in this scope if (__bos (__dest) != (size_t) -1) ^ /usr/include/i386-linux-gnu/bits/wchar2.h:154:26: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: At global scope: /usr/include/i386-linux-gnu/bits/wchar2.h:162:10: error: 'size_t' has not been declared size_t __destlen) __THROW; ^ /usr/include/i386-linux-gnu/bits/wchar2.h: In function 'wchar_t* wcpcpy(wchar_t*, const wchar_t*)': /usr/include/i386-linux-gnu/bits/wchar2.h:170:26: error: 'size_t' was not declared in this scope if (__bos (__dest) != (size_t) -1) ^ /usr/include/i386-linux-gnu/bits/wchar2.h:170:26: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: At global scope: /usr/include/i386-linux-gnu/bits/wchar2.h:177:44: error: 'size_t' has not been declared const wchar_t *__restrict __src, size_t __n, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:178:11: error: 'size_t' has not been declared size_t __destlen) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/i386-linux-gnu/bits/wchar2.h:179:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wcsncpy_alias, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:183:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wcsncpy_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:183:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wcsncpy_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:191:1: error: 'size_t' has not been declared __NTH (wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: In function 'wchar_t* wcsncpy(wchar_t*, const wchar_t*, int)': /usr/include/i386-linux-gnu/bits/wchar2.h:194:26: error: 'size_t' was not declared in this scope if (__bos (__dest) != (size_t) -1) ^ /usr/include/i386-linux-gnu/bits/wchar2.h:194:26: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: At global scope: /usr/include/i386-linux-gnu/bits/wchar2.h:208:44: error: 'size_t' has not been declared const wchar_t *__restrict __src, size_t __n, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:209:11: error: 'size_t' has not been declared size_t __destlen) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/i386-linux-gnu/bits/wchar2.h:210:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wcpncpy_alias, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:214:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wcpncpy_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:214:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wcpncpy_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:222:1: error: 'size_t' has not been declared __NTH (wcpncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: In function 'wchar_t* wcpncpy(wchar_t*, const wchar_t*, int)': /usr/include/i386-linux-gnu/bits/wchar2.h:225:26: error: 'size_t' was not declared in this scope if (__bos (__dest) != (size_t) -1) ^ /usr/include/i386-linux-gnu/bits/wchar2.h:225:26: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: At global scope: /usr/include/i386-linux-gnu/bits/wchar2.h:240:10: error: 'size_t' has not been declared size_t __destlen) __THROW; ^ /usr/include/i386-linux-gnu/bits/wchar2.h: In function 'wchar_t* wcscat(wchar_t*, const wchar_t*)': /usr/include/i386-linux-gnu/bits/wchar2.h:248:26: error: 'size_t' was not declared in this scope if (__bos (__dest) != (size_t) -1) ^ /usr/include/i386-linux-gnu/bits/wchar2.h:248:26: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: At global scope: /usr/include/i386-linux-gnu/bits/wchar2.h:256:11: error: 'size_t' has not been declared size_t __n, size_t __destlen) __THROW; ^ /usr/include/i386-linux-gnu/bits/wchar2.h:256:23: error: 'size_t' has not been declared size_t __n, size_t __destlen) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/i386-linux-gnu/bits/wchar2.h:257:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT_NTH (__wcsncat_alias, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:263:1: error: 'size_t' has not been declared __NTH (wcsncat (wchar_t *__restrict __dest, const wchar_t *__restrict __src, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: In function 'wchar_t* wcsncat(wchar_t*, const wchar_t*, int)': /usr/include/i386-linux-gnu/bits/wchar2.h:266:26: error: 'size_t' was not declared in this scope if (__bos (__dest) != (size_t) -1) ^ /usr/include/i386-linux-gnu/bits/wchar2.h:266:26: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: At global scope: /usr/include/i386-linux-gnu/bits/wchar2.h:273:53: error: 'size_t' has not been declared extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:274:19: error: 'size_t' has not been declared int __flag, size_t __s_len, ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/i386-linux-gnu/bits/wchar2.h:278:12: error: 'size_t' has not been declared extern int __REDIRECT_NTH_LDBL (__swprintf_alias, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:285:1: error: 'size_t' has not been declared __NTH (swprintf (wchar_t *__restrict __s, size_t __n, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: In function 'int swprintf(wchar_t*, int, const wchar_t*, ...)': /usr/include/i386-linux-gnu/bits/wchar2.h:288:23: error: 'size_t' was not declared in this scope if (__bos (__s) != (size_t) -1 || __USE_FORTIFY_LEVEL > 1) ^ /usr/include/i386-linux-gnu/bits/wchar2.h:288:23: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: At global scope: /usr/include/i386-linux-gnu/bits/wchar2.h:303:54: error: 'size_t' has not been declared extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:304:20: error: 'size_t' has not been declared int __flag, size_t __s_len, ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/i386-linux-gnu/bits/wchar2.h:309:12: error: 'size_t' has not been declared extern int __REDIRECT_NTH_LDBL (__vswprintf_alias, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:315:1: error: 'size_t' has not been declared __NTH (vswprintf (wchar_t *__restrict __s, size_t __n, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: In function 'int vswprintf(wchar_t*, int, const wchar_t*, __gnuc_va_list)': /usr/include/i386-linux-gnu/bits/wchar2.h:318:23: error: 'size_t' was not declared in this scope if (__bos (__s) != (size_t) -1 || __USE_FORTIFY_LEVEL > 1) ^ /usr/include/i386-linux-gnu/bits/wchar2.h:318:23: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: At global scope: /usr/include/i386-linux-gnu/bits/wchar2.h:372:56: error: 'size_t' has not been declared extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/i386-linux-gnu/bits/wchar2.h:377:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT (__fgetws_chk_warn, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: In function 'wchar_t* fgetws(wchar_t*, int, __FILE*)': /usr/include/i386-linux-gnu/bits/wchar2.h:386:23: error: 'size_t' was not declared in this scope if (__bos (__s) != (size_t) -1) ^ /usr/include/i386-linux-gnu/bits/wchar2.h:386:23: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h:392:20: error: expected ')' before '__n' if ((size_t) __n > __bos (__s) / sizeof (wchar_t)) ^ /usr/include/i386-linux-gnu/bits/wchar2.h: At global scope: /usr/include/i386-linux-gnu/bits/wchar2.h:400:65: error: 'size_t' has not been declared extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/i386-linux-gnu/bits/wchar2.h:407:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT (__fgetws_unlocked_chk_warn, ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h: In function 'wchar_t* fgetws_unlocked(wchar_t*, int, __FILE*)': /usr/include/i386-linux-gnu/bits/wchar2.h:417:23: error: 'size_t' was not declared in this scope if (__bos (__s) != (size_t) -1) ^ /usr/include/i386-linux-gnu/bits/wchar2.h:417:23: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/wchar.h:884:0, from /usr/include/c++/4.8/cwchar:44, 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/wchar2.h:423:20: error: expected ')' before '__n' if ((size_t) __n > __bos (__s) / sizeof (wchar_t)) ^ /usr/include/i386-linux-gnu/bits/wchar2.h: At global scope: /usr/include/i386-linux-gnu/bits/wchar2.h:432:8: error: 'size_t' does not name a type extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:435:8: error: 'size_t' does not name a type extern size_t __REDIRECT_NTH (__wcrtomb_alias, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:439:26: error: 'size_t' does not name a type __fortify_function __wur size_t ^ /usr/include/i386-linux-gnu/bits/wchar2.h:456:8: error: 'size_t' does not name a type extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:460:8: error: 'size_t' does not name a type extern size_t __REDIRECT_NTH (__mbsrtowcs_alias, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:465:8: error: 'size_t' does not name a type extern size_t __REDIRECT_NTH (__mbsrtowcs_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:473:20: error: 'size_t' does not name a type __fortify_function size_t ^ /usr/include/i386-linux-gnu/bits/wchar2.h:491:8: error: 'size_t' does not name a type extern size_t __wcsrtombs_chk (char *__restrict __dst, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:495:8: error: 'size_t' does not name a type extern size_t __REDIRECT_NTH (__wcsrtombs_alias, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:500:8: error: 'size_t' does not name a type extern size_t __REDIRECT_NTH (__wcsrtombs_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:507:20: error: 'size_t' does not name a type __fortify_function size_t ^ /usr/include/i386-linux-gnu/bits/wchar2.h:524:8: error: 'size_t' does not name a type extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:528:8: error: 'size_t' does not name a type extern size_t __REDIRECT_NTH (__mbsnrtowcs_alias, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:533:8: error: 'size_t' does not name a type extern size_t __REDIRECT_NTH (__mbsnrtowcs_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:541:20: error: 'size_t' does not name a type __fortify_function size_t ^ /usr/include/i386-linux-gnu/bits/wchar2.h:559:8: error: 'size_t' does not name a type extern size_t __wcsnrtombs_chk (char *__restrict __dst, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:564:8: error: 'size_t' does not name a type extern size_t __REDIRECT_NTH (__wcsnrtombs_alias, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:569:8: error: 'size_t' does not name a type extern size_t __REDIRECT_NTH (__wcsnrtombs_chk_warn, ^ /usr/include/i386-linux-gnu/bits/wchar2.h:577:20: error: 'size_t' does not name a type __fortify_function size_t ^ 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /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:154:11: error: '::mbsrtowcs' has not been declared using ::mbsrtowcs; ^ /usr/include/c++/4.8/cwchar:176:11: error: '::wcrtomb' has not been declared using ::wcrtomb; ^ /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: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:196:11: error: '::wcsxfrm' has not been declared using ::wcsxfrm; ^ In file included from /usr/include/c++/4.8/ios:40:0, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/c++/4.8/bits/char_traits.h: In static member function 'static std::size_t std::char_traits<wchar_t>::length(const char_type*)': /usr/include/c++/4.8/bits/char_traits.h:330:26: error: 'wcslen' was not declared in this scope { return wcslen(__s); } ^ In file included from /usr/include/c++/4.8/clocale:42:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++locale.h:41, from /usr/include/c++/4.8/bits/localefwd.h:40, from /usr/include/c++/4.8/ios:41, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/locale.h: At global scope: /usr/include/locale.h:151:8: error: '__locale_t' does not name a type extern __locale_t newlocale (int __category_mask, const char *__locale, ^ /usr/include/locale.h:186:8: error: '__locale_t' does not name a type extern __locale_t duplocale (__locale_t __dataset) __THROW; ^ /usr/include/locale.h:190:25: error: variable or field 'freelocale' declared void extern void freelocale (__locale_t __dataset) __THROW; ^ /usr/include/locale.h:190:25: error: '__locale_t' was not declared in this scope /usr/include/locale.h:197:8: error: '__locale_t' does not name a type extern __locale_t uselocale (__locale_t __dataset) __THROW; ^ In file included from /usr/include/c++/4.8/bits/localefwd.h:40:0, from /usr/include/c++/4.8/ios:41, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++locale.h:52:23: error: 'uselocale' was not declared in this scope extern "C" __typeof(uselocale) __uselocale; ^ /usr/include/i386-linux-gnu/c++/4.8/bits/c++locale.h:52:45: error: invalid type in declaration before ';' token extern "C" __typeof(uselocale) __uselocale; ^ /usr/include/i386-linux-gnu/c++/4.8/bits/c++locale.h:62:11: error: '__locale_t' does not name a type typedef __locale_t __c_locale; ^ /usr/include/i386-linux-gnu/c++/4.8/bits/c++locale.h:69:26: error: '__c_locale' does not name a type __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), ^ /usr/include/i386-linux-gnu/c++/4.8/bits/c++locale.h: In function 'int std::__convert_from_v(const int&, char*, int, const char*, ...)': /usr/include/i386-linux-gnu/c++/4.8/bits/c++locale.h:75:5: error: '__c_locale' was not declared in this scope __c_locale __old = __gnu_cxx::__uselocale(__cloc); ^ /usr/include/i386-linux-gnu/c++/4.8/bits/c++locale.h:75:16: error: expected ';' before '__old' __c_locale __old = __gnu_cxx::__uselocale(__cloc); ^ /usr/include/i386-linux-gnu/c++/4.8/bits/c++locale.h:100:28: error: '__old' was not declared in this scope __gnu_cxx::__uselocale(__old); ^ /usr/include/i386-linux-gnu/c++/4.8/bits/c++locale.h:100:33: error: '__gnu_cxx::__uselocale' cannot be used as a function __gnu_cxx::__uselocale(__old); ^ In file included from /usr/include/c++/4.8/cctype:42:0, from /usr/include/c++/4.8/bits/localefwd.h:42, from /usr/include/c++/4.8/ios:41, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/ctype.h: At global scope: /usr/include/ctype.h:271:1: error: '__locale_t' has not been declared __exctype_l (isalnum_l); ^ /usr/include/ctype.h:272:1: error: '__locale_t' has not been declared __exctype_l (isalpha_l); ^ /usr/include/ctype.h:273:1: error: '__locale_t' has not been declared __exctype_l (iscntrl_l); ^ /usr/include/ctype.h:274:1: error: '__locale_t' has not been declared __exctype_l (isdigit_l); ^ /usr/include/ctype.h:275:1: error: '__locale_t' has not been declared __exctype_l (islower_l); ^ /usr/include/ctype.h:276:1: error: '__locale_t' has not been declared __exctype_l (isgraph_l); ^ /usr/include/ctype.h:277:1: error: '__locale_t' has not been declared __exctype_l (isprint_l); ^ /usr/include/ctype.h:278:1: error: '__locale_t' has not been declared __exctype_l (ispunct_l); ^ /usr/include/ctype.h:279:1: error: '__locale_t' has not been declared __exctype_l (isspace_l); ^ /usr/include/ctype.h:280:1: error: '__locale_t' has not been declared __exctype_l (isupper_l); ^ /usr/include/ctype.h:281:1: error: '__locale_t' has not been declared __exctype_l (isxdigit_l); ^ /usr/include/ctype.h:283:1: error: '__locale_t' has not been declared __exctype_l (isblank_l); ^ /usr/include/ctype.h:287:34: error: '__locale_t' has not been declared extern int __tolower_l (int __c, __locale_t __l) __THROW; ^ /usr/include/ctype.h:288:32: error: '__locale_t' has not been declared extern int tolower_l (int __c, __locale_t __l) __THROW; ^ /usr/include/ctype.h:291:34: error: '__locale_t' has not been declared extern int __toupper_l (int __c, __locale_t __l) __THROW; ^ /usr/include/ctype.h:292:32: error: '__locale_t' has not been declared extern int toupper_l (int __c, __locale_t __l) __THROW; ^ In file included from /usr/include/sched.h:41:0, from /usr/include/pthread.h:23, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148, from /usr/include/c++/4.8/ext/atomicity.h:35, from /usr/include/c++/4.8/bits/ios_base.h:39, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/sched.h:203:30: error: 'size_t' was not declared in this scope extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) ^ /usr/include/i386-linux-gnu/bits/sched.h:203:30: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/sched.h:41:0, from /usr/include/pthread.h:23, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148, from /usr/include/c++/4.8/ext/atomicity.h:35, from /usr/include/c++/4.8/bits/ios_base.h:39, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/sched.h:203:48: error: expected primary-expression before 'const' extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) ^ /usr/include/i386-linux-gnu/bits/sched.h:203:71: error: expression list treated as compound expression in initializer [-fpermissive] extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/i386-linux-gnu/bits/sched.h:204:3: error: expected ',' or ';' before 'throw' __THROW; ^ In file included from /usr/include/sched.h:41:0, from /usr/include/pthread.h:23, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148, from /usr/include/c++/4.8/ext/atomicity.h:35, from /usr/include/c++/4.8/bits/ios_base.h:39, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/bits/sched.h:205:37: error: 'size_t' was not declared in this scope extern cpu_set_t *__sched_cpualloc (size_t __count) __THROW __wur; ^ /usr/include/i386-linux-gnu/bits/sched.h:205:37: note: suggested alternative: In file included from /usr/include/c++/4.8/iosfwd:38:0, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: note: 'std::size_t' typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/i386-linux-gnu/bits/sched.h:205:53: error: expected ',' or ';' before 'throw' extern cpu_set_t *__sched_cpualloc (size_t __count) __THROW __wur; ^ In file included from /usr/include/pthread.h:23:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148, from /usr/include/c++/4.8/ext/atomicity.h:35, from /usr/include/c++/4.8/bits/ios_base.h:39, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/sched.h:116:46: error: 'size_t' has not been declared extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, ^ /usr/include/sched.h:120:46: error: 'size_t' has not been declared extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, ^ In file included from /usr/include/pthread.h:24:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148, from /usr/include/c++/4.8/ext/atomicity.h:35, from /usr/include/c++/4.8/bits/ios_base.h:39, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/time.h:205:8: error: 'size_t' does not name a type extern size_t strftime (char *__restrict __s, size_t __maxsize, ^ /usr/include/time.h:223:8: error: 'size_t' does not name a type extern size_t strftime_l (char *__restrict __s, size_t __maxsize, ^ /usr/include/time.h:232:5: error: '__locale_t' has not been declared __locale_t __loc) __THROW; ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148, from /usr/include/c++/4.8/ext/atomicity.h:35, from /usr/include/c++/4.8/bits/ios_base.h:39, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/pthread.h:317:11: error: 'size_t' has not been declared size_t *__guardsize) ^ /usr/include/pthread.h:322:11: error: 'size_t' has not been declared size_t __guardsize) ^ /usr/include/pthread.h:380:19: error: 'size_t' has not been declared __attr, size_t *__restrict __stacksize) ^ /usr/include/pthread.h:387:11: error: 'size_t' has not been declared size_t __stacksize) ^ /usr/include/pthread.h:394:7: error: 'size_t' has not been declared size_t *__restrict __stacksize) ^ /usr/include/pthread.h:401:7: error: 'size_t' has not been declared size_t __stacksize) __THROW __nonnull ((1)); ^ /usr/include/pthread.h:408:6: error: 'size_t' has not been declared size_t __cpusetsize, ^ /usr/include/pthread.h:415:6: error: 'size_t' has not been declared size_t __cpusetsize, ^ /usr/include/pthread.h:458:11: error: 'size_t' has not been declared size_t __buflen) ^ /usr/include/pthread.h:485:52: error: 'size_t' has not been declared extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, ^ /usr/include/pthread.h:490:52: error: 'size_t' has not been declared extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, ^ 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/stdlib.h:139:8: error: 'size_t' does not name a type extern size_t __ctype_get_mb_cur_max (void) __THROW __wur; ^ /usr/include/stdlib.h:241:6: error: '__locale_t' has not been declared __locale_t __loc) __THROW __nonnull ((1, 4)); ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/stdlib.h:241:32: error: nonnull argument references non-pointer operand (argument 1, operand 4) __locale_t __loc) __THROW __nonnull ((1, 4)); ^ 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/stdlib.h:245:21: error: '__locale_t' has not been declared int __base, __locale_t __loc) ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/stdlib.h:246:14: error: nonnull argument references non-pointer operand (argument 1, operand 4) __THROW __nonnull ((1, 4)); ^ 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/stdlib.h:251:5: error: '__locale_t' has not been declared __locale_t __loc) ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/stdlib.h:252:14: error: nonnull argument references non-pointer operand (argument 1, operand 4) __THROW __nonnull ((1, 4)); ^ 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/stdlib.h:257:20: error: '__locale_t' has not been declared int __base, __locale_t __loc) ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/stdlib.h:258:14: error: nonnull argument references non-pointer operand (argument 1, operand 4) __THROW __nonnull ((1, 4)); ^ 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/stdlib.h:261:32: error: '__locale_t' has not been declared char **__restrict __endptr, __locale_t __loc) ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/stdlib.h:262:14: error: nonnull argument references non-pointer operand (argument 1, operand 3) __THROW __nonnull ((1, 3)); ^ 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/stdlib.h:265:38: error: '__locale_t' has not been declared char **__restrict __endptr, __locale_t __loc) ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/stdlib.h:266:14: error: nonnull argument references non-pointer operand (argument 1, operand 3) __THROW __nonnull ((1, 3)); ^ 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/stdlib.h:270:10: error: '__locale_t' has not been declared __locale_t __loc) ^ In file included from /usr/include/features.h:374:0, from /usr/include/string.h:25, from cuburi2.cpp:2: /usr/include/stdlib.h:271:14: error: nonnull argument references non-pointer operand (argument 1, operand 3) __THROW __nonnull ((1, 3)); ^ 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/istream:38, from /usr/include/c++/4.8/fstream:38, from cuburi2.cpp:3: /usr/include/stdl
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Cuburi2 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
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ă.