#941
Urare
În preajma Crăciunului toţi suntem sau redevenim copii.
Scrie un program care afişează pe ecran o urare pentru cei dragi ţie!
Problema | Urare | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51555776 | Utilizator | |
Fișier | urare.cpp | Dimensiune | 113 B |
Data încărcării | 10 Iulie 2024, 17:17 | Scor / rezultat | Eroare de compilare |
urare.cpp:1:1: error: 'include' does not name a type include <stdio.h> ^ In file included from urare.cpp:2:0: /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; ^ In file included from urare.cpp:2:0: /usr/include/stdlib.h:331:4: error: 'size_t' has not been declared size_t __statelen) __THROW __nonnull ((2)); ^ /usr/include/stdlib.h:361:4: error: 'size_t' has not been declared size_t __statelen, ^ /usr/include/stdlib.h:466:22: error: 'size_t' was not declared in this scope extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from urare.cpp:2: /usr/include/stdlib.h:466:37: error: expected ',' or ';' before 'throw' extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur; ^ In file included from urare.cpp:2:0: /usr/include/stdlib.h:468:22: error: 'size_t' was not declared in this scope extern void *calloc (size_t __nmemb, size_t __size) ^ /usr/include/stdlib.h:468:38: error: 'size_t' was not declared in this scope extern void *calloc (size_t __nmemb, size_t __size) ^ /usr/include/stdlib.h:468:51: error: expression list treated as compound expression in initializer [-fpermissive] extern void *calloc (size_t __nmemb, size_t __size) ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from urare.cpp:2: /usr/include/stdlib.h:469:6: error: expected ',' or ';' before 'throw' __THROW __attribute_malloc__ __wur; ^ In file included from urare.cpp:2:0: /usr/include/stdlib.h:480:36: error: 'size_t' has not been declared extern void *realloc (void *__ptr, size_t __size) ^ In file included from /usr/include/stdlib.h:492:0, from urare.cpp:2: /usr/include/alloca.h:32:22: error: 'size_t' was not declared in this scope extern void *alloca (size_t __size) __THROW; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from urare.cpp:2: /usr/include/alloca.h:32:37: error: expected ',' or ';' before 'throw' extern void *alloca (size_t __size) __THROW; ^ In file included from urare.cpp:2:0: /usr/include/stdlib.h:498:22: error: 'size_t' was not declared in this scope extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from urare.cpp:2: /usr/include/stdlib.h:498:37: error: expected ',' or ';' before 'throw' extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur; ^ In file included from urare.cpp:2:0: /usr/include/stdlib.h:503:45: error: 'size_t' has not been declared extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) ^ /usr/include/stdlib.h:503:65: error: 'size_t' has not been declared extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) ^ /usr/include/stdlib.h:509:29: error: 'size_t' was not declared in this scope extern void *aligned_alloc (size_t __alignment, size_t __size) ^ /usr/include/stdlib.h:509:49: error: 'size_t' was not declared in this scope extern void *aligned_alloc (size_t __alignment, size_t __size) ^ /usr/include/stdlib.h:509:62: error: expression list treated as compound expression in initializer [-fpermissive] extern void *aligned_alloc (size_t __alignment, size_t __size) ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from urare.cpp:2: /usr/include/stdlib.h:510:6: error: expected ',' or ';' before 'throw' __THROW __attribute_malloc__ __attribute_alloc_size__ ((2)) __wur; ^ In file included from urare.cpp:2:0: /usr/include/stdlib.h:756:9: error: 'size_t' has not been declared size_t __nmemb, size_t __size, __compar_fn_t __compar) ^ /usr/include/stdlib.h:756:25: error: 'size_t' has not been declared size_t __nmemb, size_t __size, __compar_fn_t __compar) ^ In file included from /usr/include/stdlib.h:760:0, from urare.cpp:2: /usr/include/i386-linux-gnu/bits/stdlib-bsearch.h:20:49: error: 'size_t' has not been declared bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, ^ /usr/include/i386-linux-gnu/bits/stdlib-bsearch.h:20:65: error: 'size_t' has not been declared bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, ^ /usr/include/i386-linux-gnu/bits/stdlib-bsearch.h: In function 'void* bsearch(const void*, const void*, int, int, __compar_fn_t)': /usr/include/i386-linux-gnu/bits/stdlib-bsearch.h:23:3: error: 'size_t' was not declared in this scope size_t __l, __u, __idx; ^ /usr/include/i386-linux-gnu/bits/stdlib-bsearch.h:23:10: error: expected ';' before '__l' size_t __l, __u, __idx; ^ /usr/include/i386-linux-gnu/bits/stdlib-bsearch.h:27:3: error: '__l' was not declared in this scope __l = 0; ^ /usr/include/i386-linux-gnu/bits/stdlib-bsearch.h:28:3: error: '__u' was not declared in this scope __u = __nmemb; ^ /usr/include/i386-linux-gnu/bits/stdlib-bsearch.h:31:7: error: '__idx' was not declared in this scope __idx = (__l + __u) / 2; ^ In file included from urare.cpp:2:0: /usr/include/stdlib.h: At global scope: /usr/include/stdlib.h:765:34: error: 'size_t' has not been declared extern void qsort (void *__base, size_t __nmemb, size_t __size, ^ /usr/include/stdlib.h:765:50: error: 'size_t' has not been declared extern void qsort (void *__base, size_t __nmemb, size_t __size, ^ /usr/include/stdlib.h:768:36: error: 'size_t' has not been declared extern void qsort_r (void *__base, size_t __nmemb, size_t __size, ^ /usr/include/stdlib.h:768:52: error: 'size_t' has not been declared extern void qsort_r (void *__base, size_t __nmemb, size_t __size, ^ /usr/include/stdlib.h:844:6: error: 'size_t' has not been declared size_t __len) __THROW __nonnull ((3, 4, 5)); ^ /usr/include/stdlib.h:847:6: error: 'size_t' has not been declared size_t __len) __THROW __nonnull ((3, 4, 5)); ^ /usr/include/stdlib.h:851:31: error: 'size_t' has not been declared char *__restrict __buf, size_t __len) ^ /usr/include/stdlib.h:855:31: error: 'size_t' has not been declared char *__restrict __buf, size_t __len) ^ /usr/include/stdlib.h:863:36: error: 'size_t' has not been declared extern int mblen (const char *__s, size_t __n) __THROW; ^ /usr/include/stdlib.h:867:34: error: 'size_t' has not been declared const char *__restrict __s, size_t __n) __THROW; ^ /usr/include/stdlib.h:874:8: error: 'size_t' does not name a type extern size_t mbstowcs (wchar_t *__restrict __pwcs, ^ /usr/include/stdlib.h:877:8: error: 'size_t' does not name a type extern size_t wcstombs (char *__restrict __s, ^ /usr/include/stdlib.h:940:46: error: 'size_t' has not been declared extern int ptsname_r (int __fd, char *__buf, size_t __buflen) ^ In file included from /usr/include/stdlib.h:959:0, from urare.cpp:2: /usr/include/i386-linux-gnu/bits/stdlib.h:25:9: error: 'size_t' has not been declared size_t __resolvedlen) __THROW __wur; ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from urare.cpp:2: /usr/include/i386-linux-gnu/bits/stdlib.h:29:14: error: 'size_t' has not been declared extern char *__REDIRECT_NTH (__realpath_chk_warn, ^ In file included from /usr/include/stdlib.h:959:0, from urare.cpp:2: /usr/include/i386-linux-gnu/bits/stdlib.h: In function 'char* realpath(const char*, char*)': /usr/include/i386-linux-gnu/bits/stdlib.h:39:30: error: 'size_t' was not declared in this scope if (__bos (__resolved) != (size_t) -1) ^ /usr/include/i386-linux-gnu/bits/stdlib.h: At global scope: /usr/include/i386-linux-gnu/bits/stdlib.h:52:52: error: 'size_t' has not been declared extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, ^ /usr/include/i386-linux-gnu/bits/stdlib.h:53:8: error: 'size_t' has not been declared size_t __nreal) __THROW __nonnull ((2)); ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdlib.h:24, from urare.cpp:2: /usr/include/i386-linux-gnu/bits/stdlib.h:54:12: error: 'size_t' has not been declared extern int __REDIRECT_NTH (__ptsname_r_alias, (int __fd, char *__buf, ^ /usr/include/i386-linux-gnu/bits/stdlib.h:57:12: error: 'size_t' has not been declared extern int __REDIRECT_NTH (__ptsname_r_chk_warn, ^ /usr/include/i386-linux-gnu/bits/stdlib.h:57:12: error: 'size_t' has not been declared extern int __REDIRECT_NTH (__ptsname_r_chk_warn, ^ /usr/include/i386-linux-gnu/bits/stdlib.h:64:1: error: 'size_t' has not been declared __NTH (ptsname_r (int __fd, char *__buf, size_t __buflen)) ^ In file included from /usr/include/stdlib.h:959:0, from urare.cpp:2: /usr/include/i386-linux-gnu/bits/stdlib.h: In function 'int ptsname_r(int, char*, int)': /usr/include/i386-linux-gnu/bits/stdlib.h:66:25: error: 'size_t' was not declared in this scope if (__bos (__buf) != (size_t) -1) ^ /usr/include/i386-linux-gnu/bits/stdlib.h: At global scope: /usr/include/i386-linux-gnu/bits/stdlib.h:77:54: error: 'size_t' has not been declared extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) ^ /usr/include/i386-linux-gnu/bits/stdlib.h: In function 'int wctomb(char*, wchar_t)': /usr/include/i386-linux-gnu/bits/stdlib.h:92:23: error: 'size_t' was not declared in this scope if (__bos (__s) != (size_t) -1 && __STDLIB_MB_LEN_MAX > __bos (__s)) ^ /usr/include/i386-linux-gnu/bits/stdlib.h: At global scope: /usr/include/i386-linux-gnu/bits/stdlib.h:98:8: error: 'size_t' does not name a type extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, ^ /usr/include/i386-linux-gnu/bits/stdlib.h:101:8: error: 'size_t' does not name a type extern size_t __REDIRECT_NTH (__mbstowcs_alias, ^ /usr/include/i386-linux-gnu/bits/stdlib.h:105:8: error: 'size_t' does not name a type extern size_t __REDIRECT_NTH (__mbstowcs_chk_warn, ^ /usr/include/i386-linux-gnu/bits/stdlib.h:112:20: error: 'size_t' does not name a type __fortify_function size_t ^ /usr/include/i386-linux-gnu/bits/stdlib.h:130:8: error: 'size_t' does not name a type extern size_t __wcstombs_chk (char *__restrict __dst, ^ /usr/include/i386-linux-gnu/bits/stdlib.h:133:8: error: 'size_t' does not name a type extern size_t __REDIRECT_NTH (__wcstombs_alias, ^ /usr/include/i386-linux-gnu/bits/stdlib.h:137:8: error: 'size_t' does not name a type extern size_t __REDIRECT_NTH (__wcstombs_chk_warn, ^ /usr/include/i386-linux-gnu/bits/stdlib.h:143:20: error: 'size_t' does not name a type __fortify_function size_t ^ urare.cpp: In function 'int main()': urare.cpp:6:33: error: 'printf' was not declared in this scope printf("Sarbatori fericite!"); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Urare 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ă.