#3730
Cartofi
Fermierul Feder cultivă cartofi pe un teren dreptunghiular de lățime N
metri și lungime M
metri, compartimentat în N * M
zone pătratice identice de lungime 1
metru, dispuse alăturat, câte N
pe lățime (pe N
linii, numerotate de la 1
la N
) și câte M
pe lungime (pe M
coloane, numerotate de la 1
la M
).
Scrieți un program care citește numerele N
și M
(cu semnificația din enunț), iar apoi determină:
1. numărul plantelor din teren care nu au produs niciun cartof;
2. numărul maxim de cartofi care pot fi produși de plantele dintr-o suprafață pătratică din terenul fermierului;
3. pentru fiecare dintre cele Q
perechi de numere (A, B)
citite, numărul cartofilor produși de plantele aflate în zonele pătratice situate între coloanele cu numerele A
și B
, inclusiv acestea.
OJI 2021 clasa a VIII-a
Problema | Cartofi | Operații I/O |
cartofi.in /cartofi.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #49414573 | Utilizator | |
Fișier | cartofi.cpp | Dimensiune | 579 B |
Data încărcării | 29 Februarie 2024, 15:14 | Scor / rezultat | Eroare de compilare |
In file included from /usr/include/c++/4.8/iostream:38:0, from cartofi.cpp:2: /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:186:26: error: expected initializer before 'size_t' typedef __SIZE_TYPE__ size_t; ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ In file included from /usr/include/wchar.h:51: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/ostream:38, from /usr/include/c++/4.8/iostream:39, from cartofi.cpp:2: /usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: error: expected initializer before 'size_t' typedef __SIZE_TYPE__ size_t; ^ /usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:353:23: error: expected initializer before 'wint_t' typedef __WINT_TYPE__ wint_t; ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: expected ';' at end of member declaration #define int int64_t ^ 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 cartofi.cpp:2: /usr/include/wchar.h:88:19: error: '__wch' does not name a type __WINT_TYPE__ __wch; ^ /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) ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: expected ';' at end of member declaration #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ 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 cartofi.cpp:2: /usr/include/wchar.h:196:8: error: 'size_t' does not name a type extern size_t wcsxfrm (wchar_t *__restrict __s1, ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ 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 cartofi.cpp:2: /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) ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ 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 cartofi.cpp:2: /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:353:8: error: 'wint_t' does not name a type extern wint_t btowc (int __c) __THROW; ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ 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 cartofi.cpp:2: /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:386:8: error: 'wint_t' does not name a type extern wint_t __btowc_alias (int __c) __asm ("btowc"); ^ /usr/include/wchar.h:387:17: error: 'wint_t' does not name a type __extern_inline wint_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ 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 cartofi.cpp:2: /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, ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ 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 cartofi.cpp:2: /usr/include/wchar.h:468:17: error: expected initializer before 'wcstol' extern long int wcstol (const wchar_t *__restrict __nptr, ^ /usr/include/wchar.h:473:26: error: expected initializer before 'wcstoul' extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, ^ /usr/include/wchar.h:483:22: error: expected initializer before 'wcstoll' extern long long int wcstoll (const wchar_t *__restrict __nptr, ^ /usr/include/wchar.h:490:31: error: expected initializer before 'wcstoull' extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, ^ /usr/include/wchar.h:500:22: error: expected initializer before 'wcstoq' extern long long int wcstoq (const wchar_t *__restrict __nptr, ^ /usr/include/wchar.h:507:31: error: expected initializer before 'wcstouq' extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, ^ /usr/include/wchar.h:530:17: error: expected initializer before 'wcstol_l' extern long int wcstol_l (const wchar_t *__restrict __nptr, ^ /usr/include/wchar.h:534:26: error: expected initializer before 'wcstoul_l' extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, ^ /usr/include/wchar.h:539:22: error: expected initializer before 'wcstoll_l' extern long long int wcstoll_l (const wchar_t *__restrict __nptr, ^ /usr/include/wchar.h:544:31: error: expected initializer before 'wcstoull_l' extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, ^ /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; ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ 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 cartofi.cpp:2: /usr/include/wchar.h:745:8: error: 'wint_t' does not name a type extern wint_t fgetwc (__FILE *__stream); ^ /usr/include/wchar.h:746:8: error: 'wint_t' does not name a type extern wint_t getwc (__FILE *__stream); ^ /usr/include/wchar.h:752:8: error: 'wint_t' does not name a type extern wint_t getwchar (void); ^ /usr/include/wchar.h:759:8: error: 'wint_t' does not name a type extern wint_t fputwc (wchar_t __wc, __FILE *__stream); ^ /usr/include/wchar.h:760:8: error: 'wint_t' does not name a type extern wint_t putwc (wchar_t __wc, __FILE *__stream); ^ /usr/include/wchar.h:766:8: error: 'wint_t' does not name a type extern wint_t putwchar (wchar_t __wc); ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ 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 cartofi.cpp:2: /usr/include/wchar.h:789:8: error: 'wint_t' does not name a type extern wint_t ungetwc (wint_t __wc, __FILE *__stream); ^ /usr/include/wchar.h:801:8: error: 'wint_t' does not name a type extern wint_t getwc_unlocked (__FILE *__stream); ^ /usr/include/wchar.h:802:8: error: 'wint_t' does not name a type extern wint_t getwchar_unlocked (void); ^ /usr/include/wchar.h:810:8: error: 'wint_t' does not name a type extern wint_t fgetwc_unlocked (__FILE *__stream); ^ /usr/include/wchar.h:818:8: error: 'wint_t' does not name a type extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); ^ /usr/include/wchar.h:827:8: error: 'wint_t' does not name a type extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); ^ /usr/include/wchar.h:828:8: error: 'wint_t' does not name a type extern wint_t putwchar_unlocked (wchar_t __wc); ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ 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 cartofi.cpp:2: /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/ostream:38, from /usr/include/c++/4.8/iostream:39, from cartofi.cpp:2: /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/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 cartofi.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/ostream:38, from /usr/include/c++/4.8/iostream:39, from cartofi.cpp:2: /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: 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/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 cartofi.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/ostream:38, from /usr/include/c++/4.8/iostream:39, from cartofi.cpp:2: /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: 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/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 cartofi.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/ostream:38, from /usr/include/c++/4.8/iostream:39, from cartofi.cpp:2: /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: 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/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 cartofi.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/ostream:38, from /usr/include/c++/4.8/iostream:39, from cartofi.cpp:2: /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: 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: 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: 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/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 cartofi.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/ostream:38, from /usr/include/c++/4.8/iostream:39, from cartofi.cpp:2: /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: 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/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 cartofi.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/ostream:38, from /usr/include/c++/4.8/iostream:39, from cartofi.cpp:2: /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: 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: 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/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 cartofi.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/ostream:38, from /usr/include/c++/4.8/iostream:39, from cartofi.cpp:2: /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: At global scope: cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_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/ostream:38, from /usr/include/c++/4.8/iostream:39, from cartofi.cpp:2: /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, ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ 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 cartofi.cpp:2: cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ /usr/include/i386-linux-gnu/bits/wchar2.h:377:17: error: 'size_t' has not been declared extern wchar_t *__REDIRECT (__fgetws_chk_warn, ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_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/ostream:38, from /usr/include/c++/4.8/iostream:39, from cartofi.cpp:2: /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: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, ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ 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 cartofi.cpp:2: cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ /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, ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_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/ostream:38, from /usr/include/c++/4.8/iostream:39, from cartofi.cpp:2: /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: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/ostream:38, from /usr/include/c++/4.8/iostream:39, from cartofi.cpp:2: /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: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: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: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:185:11: error: '::wcsncmp' has not been declared using ::wcsncmp; ^ /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: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: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: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:265:22: error: '__gnu_cxx::wcstoll' has not been declared using ::__gnu_cxx::wcstoll; ^ /usr/include/c++/4.8/cwchar:266:22: error: '__gnu_cxx::wcstoull' has not been declared using ::__gnu_cxx::wcstoull; ^ /usr/include/c++/4.8/cwchar:283:14: error: 'std::vfwscanf' has not been declared using std::vfwscanf; ^ /usr/include/c++/4.8/cwchar:286:14: error: 'std::vswscanf' has not been declared using std::vswscanf; ^ /usr/include/c++/4.8/cwchar:289:14: error: 'std::vwscanf' has not been declared using std::vwscanf; ^ /usr/include/c++/4.8/cwchar:294:14: error: 'std::wcstoll' has not been declared using std::wcstoll; ^ /usr/include/c++/4.8/cwchar:295:14: error: 'std::wcstoull' has not been declared using std::wcstoull; ^ In file included from /usr/include/c++/4.8/iosfwd:40:0, 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 cartofi.cpp:2: /usr/include/c++/4.8/bits/postypes.h:98:11: error: 'ptrdiff_t' does not name a type typedef ptrdiff_t streamsize; // Signed integral type ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:60:0, from /usr/include/c++/4.8/bits/char_traits.h:39, 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 cartofi.cpp:2: /usr/include/c++/4.8/bits/functexcept.h:94:27: error: variable or field '__throw_system_error' declared void __throw_system_error(int) __attribute__((__noreturn__)); ^ cartofi.cpp:1:13: error: 'int64_t' was not declared in this scope #define int int64_t ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:60:0, from /usr/include/c++/4.8/bits/char_traits.h:39, 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 cartofi.cpp:2: /usr/include/c++/4.8/bits/functexcept.h:97:27: error: variable or field '__throw_future_error' declared void __throw_future_error(int) __attribute__((__noreturn__)); ^ cartofi.cpp:1:13: error: 'int64_t' was not declared in this scope #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' was not declared in this scope #define int int64_t ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:61:0, from /usr/include/c++/4.8/bits/char_traits.h:39, 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 cartofi.cpp:2: /usr/include/c++/4.8/bits/cpp_type_traits.h:213:28: error: template argument 1 is invalid struct __is_integer<int> ^ /usr/include/c++/4.8/bits/cpp_type_traits.h:220:37: error: template argument 1 is invalid struct __is_integer<unsigned int> ^ cartofi.cpp:1:13: error: 'int64_t' was not declared in this scope #define int int64_t ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:62:0, from /usr/include/c++/4.8/bits/char_traits.h:39, 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 cartofi.cpp:2: /usr/include/c++/4.8/ext/type_traits.h:85:30: error: template argument 1 is invalid struct __add_unsigned<int> ^ /usr/include/c++/4.8/ext/type_traits.h:128:42: error: template argument 1 is invalid struct __remove_unsigned<unsigned int> ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' does not name a type #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' was not declared in this scope #define int int64_t ^ In file included from /usr/include/c++/4.8/bits/move.h:57:0, from /usr/include/c++/4.8/bits/stl_pair.h:59, from /usr/include/c++/4.8/bits/stl_algobase.h:64, from /usr/include/c++/4.8/bits/char_traits.h:39, 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 cartofi.cpp:2: /usr/include/c++/4.8/type_traits:211:36: error: template argument 1 is invalid struct __is_integral_helper<int> ^ /usr/include/c++/4.8/type_traits:215:45: error: template argument 1 is invalid struct __is_integral_helper<unsigned int> ^ /usr/include/c++/4.8/type_traits:285:31: error: 'std::size_t' has not been declared template<typename _Tp, std::size_t _Size> ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ In file included from /usr/include/c++/4.8/bits/move.h:57:0, from /usr/include/c++/4.8/bits/stl_pair.h:59, from /usr/include/c++/4.8/bits/stl_algobase.h:64, from /usr/include/c++/4.8/bits/char_traits.h:39, 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 cartofi.cpp:2: /usr/include/c++/4.8/type_traits:1239:32: error: 'size_t' is not a member of 'std' : public integral_constant<std::size_t, __alignof__(_Tp)> { }; ^ /usr/include/c++/4.8/type_traits:1239:32: error: 'size_t' is not a member of 'std' /usr/include/c++/4.8/type_traits:1239:61: error: template argument 1 is invalid : public integral_constant<std::size_t, __alignof__(_Tp)> { }; ^ /usr/include/c++/4.8/type_traits:1239:61: note: invalid template non-type parameter /usr/include/c++/4.8/type_traits:1244:32: error: 'size_t' is not a member of 'std' : public integral_constant<std::size_t, 0> { }; ^ /usr/include/c++/4.8/type_traits:1244:32: error: 'size_t' is not a member of 'std' /usr/include/c++/4.8/type_traits:1244:46: error: template argument 1 is invalid : public integral_constant<std::size_t, 0> { }; ^ /usr/include/c++/4.8/type_traits:1244:46: note: invalid template non-type parameter /usr/include/c++/4.8/type_traits:1246:31: error: 'std::size_t' has not been declared template<typename _Tp, std::size_t _Size> ^ /usr/include/c++/4.8/type_traits:1248:32: error: 'size_t' is not a member of 'std' : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; ^ /usr/include/c++/4.8/type_traits:1248:32: error: 'size_t' is not a member of 'std' /usr/include/c++/4.8/type_traits:1248:65: error: template argument 1 is invalid : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; ^ /usr/include/c++/4.8/type_traits:1248:65: note: invalid template non-type parameter /usr/include/c++/4.8/type_traits:1252:32: error: 'size_t' is not a member of 'std' : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; ^ /usr/include/c++/4.8/type_traits:1252:32: error: 'size_t' is not a member of 'std' /usr/include/c++/4.8/type_traits:1252:65: error: template argument 1 is invalid : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; ^ /usr/include/c++/4.8/type_traits:1252:65: note: invalid template non-type parameter /usr/include/c++/4.8/type_traits:1257:32: error: 'size_t' is not a member of 'std' : public integral_constant<std::size_t, 0> { }; ^ /usr/include/c++/4.8/type_traits:1257:32: error: 'size_t' is not a member of 'std' /usr/include/c++/4.8/type_traits:1257:46: error: template argument 1 is invalid : public integral_constant<std::size_t, 0> { }; ^ /usr/include/c++/4.8/type_traits:1257:46: note: invalid template non-type parameter /usr/include/c++/4.8/type_traits:1259:47: error: 'std::size_t' has not been declared template<typename _Tp, unsigned _Uint, std::size_t _Size> ^ /usr/include/c++/4.8/type_traits:1261:32: error: 'size_t' is not a member of 'std' : public integral_constant<std::size_t, ^ /usr/include/c++/4.8/type_traits:1261:32: error: 'size_t' is not a member of 'std' /usr/include/c++/4.8/type_traits:1263:28: error: template argument 1 is invalid _Uint - 1>::value> ^ /usr/include/c++/4.8/type_traits:1263:28: note: invalid template non-type parameter /usr/include/c++/4.8/type_traits:1268:32: error: 'size_t' is not a member of 'std' : public integral_constant<std::size_t, ^ /usr/include/c++/4.8/type_traits:1268:32: error: 'size_t' is not a member of 'std' /usr/include/c++/4.8/type_traits:1270:31: error: template argument 1 is invalid _Uint - 1>::value> ^ /usr/include/c++/4.8/type_traits:1270:31: note: invalid template non-type parameter cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' was not declared in this scope #define int int64_t ^ In file included from /usr/include/c++/4.8/bits/move.h:57:0, from /usr/include/c++/4.8/bits/stl_pair.h:59, from /usr/include/c++/4.8/bits/stl_algobase.h:64, from /usr/include/c++/4.8/bits/char_traits.h:39, 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 cartofi.cpp:2: /usr/include/c++/4.8/type_traits:1474:31: error: template argument 1 is invalid struct __make_unsigned<int> ^ /usr/include/c++/4.8/type_traits:1515:54: error: expected primary-expression before 'unsigned' static const bool __b2 = sizeof(_Tp) <= sizeof(unsigned int); ^ /usr/include/c++/4.8/type_traits:1515:54: error: expected ')' before 'unsigned' /usr/include/c++/4.8/type_traits:1516:60: error: wrong number of template arguments (2, should be 3) typedef conditional<__b2, unsigned int, unsigned long> __cond2; ^ /usr/include/c++/4.8/type_traits:77:12: error: provided for 'template<bool <anonymous>, class, class> struct std::conditional' struct conditional; ^ /usr/include/c++/4.8/type_traits:1517:24: error: '__cond2' is not a class, namespace, or enumeration typedef typename __cond2::type __cond2_type; ^ /usr/include/c++/4.8/type_traits:1556:38: error: template argument 1 is invalid struct __make_signed<unsigned int> ^ /usr/include/c++/4.8/type_traits:1597:54: error: expected primary-expression before 'signed' static const bool __b2 = sizeof(_Tp) <= sizeof(signed int); ^ /usr/include/c++/4.8/type_traits:1597:54: error: expected ')' before 'signed' /usr/include/c++/4.8/type_traits:1598:56: error: wrong number of template arguments (2, should be 3) typedef conditional<__b2, signed int, signed long> __cond2; ^ /usr/include/c++/4.8/type_traits:77:12: error: provided for 'template<bool <anonymous>, class, class> struct std::conditional' struct conditional; ^ /usr/include/c++/4.8/type_traits:1599:24: error: '__cond2' is not a class, namespace, or enumeration typedef typename __cond2::type __cond2_type; ^ /usr/include/c++/4.8/type_traits:1627:31: error: 'std::size_t' has not been declared template<typename _Tp, std::size_t _Size> ^ /usr/include/c++/4.8/type_traits:1640:31: error: 'std::size_t' has not been declared template<typename _Tp, std::size_t _Size> ^ /usr/include/c++/4.8/type_traits:1671:17: error: 'std::size_t' has not been declared template<std::size_t _Len> ^ /usr/include/c++/4.8/type_traits:1691:17: error: 'std::size_t' has not been declared template<std::size_t _Len, std::size_t _Align = ^ /usr/include/c++/4.8/type_traits:1691:35: error: 'std::size_t' has not been declared template<std::size_t _Len, std::size_t _Align = ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ In file included from /usr/include/c++/4.8/bits/stl_pair.h:59:0, from /usr/include/c++/4.8/bits/stl_algobase.h:64, from /usr/include/c++/4.8/bits/char_traits.h:39, 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 cartofi.cpp:2: /usr/include/c++/4.8/bits/move.h:183:26: error: 'size_t' has not been declared template<typename _Tp, size_t _Nm> ^ /usr/include/c++/4.8/bits/move.h: In function 'void std::swap(_Tp (&)[_Nm], _Tp (&)[_Nm])': /usr/include/c++/4.8/bits/move.h:190:12: error: 'size_t' was not declared in this scope for (size_t __n = 0; __n < _Nm; ++__n) ^ /usr/include/c++/4.8/bits/move.h:190:19: error: expected ';' before '__n' for (size_t __n = 0; __n < _Nm; ++__n) ^ /usr/include/c++/4.8/bits/move.h:190:28: error: '__n' was not declared in this scope for (size_t __n = 0; __n < _Nm; ++__n) ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0, from /usr/include/c++/4.8/bits/char_traits.h:39, 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 cartofi.cpp:2: /usr/include/c++/4.8/bits/stl_pair.h: At global scope: /usr/include/c++/4.8/bits/stl_pair.h:85:17: error: 'std::size_t' has not been declared template<std::size_t...> ^ /usr/include/c++/4.8/bits/stl_pair.h:204:41: error: 'std::size_t' has not been declared template<typename... _Args1, std::size_t... _Indexes1, ^ /usr/include/c++/4.8/bits/stl_pair.h:205:41: error: 'std::size_t' has not been declared typename... _Args2, std::size_t... _Indexes2> ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0, from /usr/include/c++/4.8/bits/char_traits.h:39, 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 cartofi.cpp:2: /usr/include/c++/4.8/bits/stl_iterator_base_types.h:116:67: error: expected type-specifier before 'ptrdiff_t' template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t, ^ /usr/include/c++/4.8/bits/stl_iterator_base_types.h:116:67: error: expected '>' before 'ptrdiff_t' /usr/include/c++/4.8/bits/stl_iterator_base_types.h:127:15: error: '_Pointer' does not name a type typedef _Pointer pointer; ^ /usr/include/c++/4.8/bits/stl_iterator_base_types.h:129:15: error: '_Reference' does not name a type typedef _Reference reference; ^ /usr/include/c++/4.8/bits/stl_iterator_base_types.h:179:15: error: 'ptrdiff_t' does not name a type typedef ptrdiff_t difference_type; ^ /usr/include/c++/4.8/bits/stl_iterator_base_types.h:190:15: error: 'ptrdiff_t' does not name a type typedef ptrdiff_t difference_type; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, 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 cartofi.cpp:2: /usr/include/c++/4.8/bits/stl_iterator.h:101:69: error: wrong number of template arguments (5, should be 3) typename iterator_traits<_Iterator>::reference> ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0, from /usr/include/c++/4.8/bits/char_traits.h:39, 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 cartofi.cpp:2: /usr/include/c++/4.8/bits/stl_iterator_base_types.h:118:12: error: provided for 'template<class _Category, class _Tp, class _Distance> struct std::iterator' struct iterator ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ cartofi.cpp:1:13: error: 'int64_t' has not been declared #define int int64_t ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/bits/char_traits.h:39, 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 cartofi.cpp:2: /usr/include/c++/4.8/bits/stl_iterator.h:403:66: error: wrong number of template arguments (5, should be 3) : public iterator<output_iterator_tag, void, void, void, void> ^ In file in
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Cartofi 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ă.