#4897
Un număr se numește palindrom dacă prima lui cifră este egală cu ultima, a doua cu penultima și așa mai departe. De exemplu numerele 1221, 505 și 7 sunt palindromuri, în vreme ce 500, 1410 și 2424 nu sunt palindromuri.
Se citește de la tastatură un număr natural n cu cel mult 4 cifre. Să se verifice dacă numărul citit este un palindrom.
| Problema | Pal1234 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64799667 | Utilizator | |
| Fișier | pal1234.cpp | Dimensiune | 741 B |
| Data încărcării | 02 Iunie 2026, 10:07 | Scor/rezultat | Eroare de compilare |
pal1234.cpp:2:1: error: stray ‘##’ in program 2 | ##include <vector> | ^~ pal1234.cpp:2:3: error: ‘include’ does not name a type 2 | ##include <vector> | ^~~~~~~ In file included from /usr/include/stdlib.h:514, from /usr/include/c++/13/bits/std_abs.h:38, from /usr/include/c++/13/cmath:49, from pal1234.cpp:3: /usr/include/x86_64-linux-gnu/sys/types.h:33:9: error: ‘__u_char’ does not name a type 33 | typedef __u_char u_char; | ^~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:34:9: error: ‘__u_short’ does not name a type 34 | typedef __u_short u_short; | ^~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:35:9: error: ‘__u_int’ does not name a type 35 | typedef __u_int u_int; | ^~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:36:9: error: ‘__u_long’ does not name a type 36 | typedef __u_long u_long; | ^~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:37:9: error: ‘__quad_t’ does not name a type 37 | typedef __quad_t quad_t; | ^~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:38:9: error: ‘__u_quad_t’ does not name a type 38 | typedef __u_quad_t u_quad_t; | ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:39:9: error: ‘__fsid_t’ does not name a type 39 | typedef __fsid_t fsid_t; | ^~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:42:9: error: ‘__loff_t’ does not name a type; did you mean ‘__locale_t’? 42 | typedef __loff_t loff_t; | ^~~~~~~~ | __locale_t /usr/include/x86_64-linux-gnu/sys/types.h:47:9: error: ‘__ino_t’ does not name a type 47 | typedef __ino_t ino_t; | ^~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:54:9: error: ‘__ino64_t’ does not name a type 54 | typedef __ino64_t ino64_t; | ^~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:59:9: error: ‘__dev_t’ does not name a type 59 | typedef __dev_t dev_t; | ^~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:64:9: error: ‘__gid_t’ does not name a type 64 | typedef __gid_t gid_t; | ^~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:69:9: error: ‘__mode_t’ does not name a type; did you mean ‘__locale_t’? 69 | typedef __mode_t mode_t; | ^~~~~~~~ | __locale_t /usr/include/x86_64-linux-gnu/sys/types.h:74:9: error: ‘__nlink_t’ does not name a type 74 | typedef __nlink_t nlink_t; | ^~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:79:9: error: ‘__uid_t’ does not name a type 79 | typedef __uid_t uid_t; | ^~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:85:9: error: ‘__off_t’ does not name a type 85 | typedef __off_t off_t; | ^~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:92:9: error: ‘__off64_t’ does not name a type 92 | typedef __off64_t off64_t; | ^~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:97:9: error: ‘__pid_t’ does not name a type 97 | typedef __pid_t pid_t; | ^~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:103:9: error: ‘__id_t’ does not name a type 103 | typedef __id_t id_t; | ^~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:108:9: error: ‘__ssize_t’ does not name a type; did you mean ‘size_t’? 108 | typedef __ssize_t ssize_t; | ^~~~~~~~~ | size_t /usr/include/x86_64-linux-gnu/sys/types.h:114:9: error: ‘__daddr_t’ does not name a type 114 | typedef __daddr_t daddr_t; | ^~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:115:9: error: ‘__caddr_t’ does not name a type 115 | typedef __caddr_t caddr_t; | ^~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:121:9: error: ‘__key_t’ does not name a type 121 | typedef __key_t key_t; | ^~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:126: /usr/include/x86_64-linux-gnu/bits/types/clock_t.h:7:9: error: ‘__clock_t’ does not name a type 7 | typedef __clock_t clock_t; | ^~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:128: /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h:7:9: error: ‘__clockid_t’ does not name a type 7 | typedef __clockid_t clockid_t; | ^~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:129: /usr/include/x86_64-linux-gnu/bits/types/time_t.h:10:9: error: ‘__time_t’ does not name a type 10 | typedef __time_t time_t; | ^~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:130: /usr/include/x86_64-linux-gnu/bits/types/timer_t.h:7:9: error: ‘__timer_t’ does not name a type 7 | typedef __timer_t timer_t; | ^~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:134:9: error: ‘__useconds_t’ does not name a type 134 | typedef __useconds_t useconds_t; | ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:138:9: error: ‘__suseconds_t’ does not name a type 138 | typedef __suseconds_t suseconds_t; | ^~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:155: /usr/include/x86_64-linux-gnu/bits/stdint-intn.h:24:9: error: ‘__int8_t’ does not name a type; did you mean ‘__int128_t’? 24 | typedef __int8_t int8_t; | ^~~~~~~~ | __int128_t /usr/include/x86_64-linux-gnu/bits/stdint-intn.h:25:9: error: ‘__int16_t’ does not name a type; did you mean ‘__int128_t’? 25 | typedef __int16_t int16_t; | ^~~~~~~~~ | __int128_t /usr/include/x86_64-linux-gnu/bits/stdint-intn.h:26:9: error: ‘__int32_t’ does not name a type; did you mean ‘__int128_t’? 26 | typedef __int32_t int32_t; | ^~~~~~~~~ | __int128_t /usr/include/x86_64-linux-gnu/bits/stdint-intn.h:27:9: error: ‘__int64_t’ does not name a type; did you mean ‘__int128_t’? 27 | typedef __int64_t int64_t; | ^~~~~~~~~ | __int128_t /usr/include/x86_64-linux-gnu/sys/types.h:158:9: error: ‘__uint8_t’ does not name a type; did you mean ‘__uint128_t’? 158 | typedef __uint8_t u_int8_t; | ^~~~~~~~~ | __uint128_t /usr/include/x86_64-linux-gnu/sys/types.h:159:9: error: ‘__uint16_t’ does not name a type; did you mean ‘__uint128_t’? 159 | typedef __uint16_t u_int16_t; | ^~~~~~~~~~ | __uint128_t /usr/include/x86_64-linux-gnu/sys/types.h:160:9: error: ‘__uint32_t’ does not name a type; did you mean ‘__uint128_t’? 160 | typedef __uint32_t u_int32_t; | ^~~~~~~~~~ | __uint128_t /usr/include/x86_64-linux-gnu/sys/types.h:161:9: error: ‘__uint64_t’ does not name a type; did you mean ‘__uint128_t’? 161 | typedef __uint64_t u_int64_t; | ^~~~~~~~~~ | __uint128_t In file included from /usr/include/endian.h:35, from /usr/include/x86_64-linux-gnu/sys/types.h:176: /usr/include/x86_64-linux-gnu/bits/byteswap.h:33:17: error: ‘__uint16_t’ does not name a type; did you mean ‘__uint128_t’? 33 | static __inline __uint16_t | ^~~~~~~~~~ | __uint128_t /usr/include/x86_64-linux-gnu/bits/byteswap.h:48:17: error: ‘__uint32_t’ does not name a type; did you mean ‘__uint128_t’? 48 | static __inline __uint32_t | ^~~~~~~~~~ | __uint128_t /usr/include/x86_64-linux-gnu/bits/byteswap.h:69:31: error: ‘__uint64_t’ does not name a type; did you mean ‘__uint128_t’? 69 | __extension__ static __inline __uint64_t | ^~~~~~~~~~ | __uint128_t In file included from /usr/include/endian.h:36: /usr/include/x86_64-linux-gnu/bits/uintn-identity.h:32:17: error: ‘__uint16_t’ does not name a type; did you mean ‘__uint128_t’? 32 | static __inline __uint16_t | ^~~~~~~~~~ | __uint128_t /usr/include/x86_64-linux-gnu/bits/uintn-identity.h:38:17: error: ‘__uint32_t’ does not name a type; did you mean ‘__uint128_t’? 38 | static __inline __uint32_t | ^~~~~~~~~~ | __uint128_t /usr/include/x86_64-linux-gnu/bits/uintn-identity.h:44:17: error: ‘__uint64_t’ does not name a type; did you mean ‘__uint128_t’? 44 | static __inline __uint64_t | ^~~~~~~~~~ | __uint128_t In file included from /usr/include/x86_64-linux-gnu/sys/select.h:37, from /usr/include/x86_64-linux-gnu/sys/types.h:179: /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h:14:3: error: ‘__time_t’ does not name a type 14 | __time_t tv_sec; /* Seconds. */ | ^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h:15:3: error: ‘__suseconds_t’ does not name a type 15 | __suseconds_t tv_usec; /* Microseconds. */ | ^~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/select.h:39: /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h:16:3: error: ‘__time_t’ does not name a type 16 | __time_t tv_sec; /* Seconds. */ | ^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h:21:3: error: ‘__syscall_slong_t’ does not name a type 21 | __syscall_slong_t tv_nsec; /* Nanoseconds. */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:185:9: error: ‘__blksize_t’ does not name a type 185 | typedef __blksize_t blksize_t; | ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:192:9: error: ‘__blkcnt_t’ does not name a type 192 | typedef __blkcnt_t blkcnt_t; /* Type to count number of disk blocks. */ | ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:196:9: error: ‘__fsblkcnt_t’ does not name a type 196 | typedef __fsblkcnt_t fsblkcnt_t; /* Type to count file system blocks. */ | ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:200:9: error: ‘__fsfilcnt_t’ does not name a type 200 | typedef __fsfilcnt_t fsfilcnt_t; /* Type to count file system inodes. */ | ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:219:9: error: ‘__blkcnt64_t’ does not name a type 219 | typedef __blkcnt64_t blkcnt64_t; /* Type to count number of disk blocks. */ | ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:220:9: error: ‘__fsblkcnt64_t’ does not name a type 220 | typedef __fsblkcnt64_t fsblkcnt64_t; /* Type to count file system blocks. */ | ^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/types.h:221:9: error: ‘__fsfilcnt64_t’ does not name a type 221 | typedef __fsfilcnt64_t fsfilcnt64_t; /* Type to count file system inodes. */ | ^~~~~~~~~~~~~~ /usr/include/stdlib.h:545:5: error: ‘int32_t’ does not name a type 545 | int32_t *fptr; /* Front pointer. */ | ^~~~~~~ /usr/include/stdlib.h:515:1: note: ‘int32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 514 | # include <sys/types.h> /* we need int32_t... */ +++ |+#include <cstdint> 515 | /usr/include/stdlib.h:546:5: error: ‘int32_t’ does not name a type 546 | int32_t *rptr; /* Rear pointer. */ | ^~~~~~~ /usr/include/stdlib.h:546:5: note: ‘int32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? /usr/include/stdlib.h:547:5: error: ‘int32_t’ does not name a type 547 | int32_t *state; /* Array of state values. */ | ^~~~~~~ /usr/include/stdlib.h:547:5: note: ‘int32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? /usr/include/stdlib.h:551:5: error: ‘int32_t’ does not name a type 551 | int32_t *end_ptr; /* Pointer behind state table. */ | ^~~~~~~ /usr/include/stdlib.h:551:5: note: ‘int32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? /usr/include/stdlib.h:555:22: error: ‘int32_t’ has not been declared 555 | int32_t *__restrict __result) __THROW __nonnull ((1, 2)); | ^~~~~~~ /usr/include/stdlib.h:657:8: error: ‘__uint32_t’ does not name a type; did you mean ‘__uint128_t’? 657 | extern __uint32_t arc4random (void) | ^~~~~~~~~~ | __uint128_t /usr/include/stdlib.h:666:8: error: ‘__uint32_t’ does not name a type; did you mean ‘__uint128_t’? 666 | extern __uint32_t arc4random_uniform (__uint32_t __upper_bound) | ^~~~~~~~~~ | __uint128_t /usr/include/c++/13/cmath:85:11: error: ‘acos’ has not been declared in ‘::’ 85 | using ::acos; | ^~~~ /usr/include/c++/13/cmath:104:11: error: ‘asin’ has not been declared in ‘::’ 104 | using ::asin; | ^~~~ /usr/include/c++/13/cmath:123:11: error: ‘atan’ has not been declared in ‘::’ 123 | using ::atan; | ^~~~ /usr/include/c++/13/cmath:142:11: error: ‘atan2’ has not been declared in ‘::’ 142 | using ::atan2; | ^~~~~ /usr/include/c++/13/cmath:154:11: error: ‘ceil’ has not been declared in ‘::’ 154 | using ::ceil; | ^~~~ /usr/include/c++/13/cmath:173:11: error: ‘cos’ has not been declared in ‘::’ 173 | using ::cos; | ^~~ /usr/include/c++/13/cmath:192:11: error: ‘cosh’ has not been declared in ‘::’ 192 | using ::cosh; | ^~~~ /usr/include/c++/13/cmath:211:11: error: ‘exp’ has not been declared in ‘::’ 211 | using ::exp; | ^~~ /usr/include/c++/13/cmath:230:11: error: ‘fabs’ has not been declared in ‘::’ 230 | using ::fabs; | ^~~~ /usr/include/c++/13/cmath:249:11: error: ‘floor’ has not been declared in ‘::’ 249 | using ::floor; | ^~~~~ /usr/include/c++/13/cmath:268:11: error: ‘fmod’ has not been declared in ‘::’ 268 | using ::fmod; | ^~~~ /usr/include/c++/13/cmath:280:11: error: ‘frexp’ has not been declared in ‘::’ 280 | using ::frexp; | ^~~~~ /usr/include/c++/13/cmath:299:11: error: ‘ldexp’ has not been declared in ‘::’ 299 | using ::ldexp; | ^~~~~ /usr/include/c++/13/cmath:318:11: error: ‘log’ has not been declared in ‘::’ 318 | using ::log; | ^~~ /usr/include/c++/13/cmath:337:11: error: ‘log10’ has not been declared in ‘::’ 337 | using ::log10; | ^~~~~ /usr/include/c++/13/cmath:356:11: error: ‘modf’ has not been declared in ‘::’ 356 | using ::modf; | ^~~~ /usr/include/c++/13/cmath:368:11: error: ‘pow’ has not been declared in ‘::’ 368 | using ::pow; | ^~~ /usr/include/c++/13/cmath:396:11: error: ‘sin’ has not been declared in ‘::’ 396 | using ::sin; | ^~~ /usr/include/c++/13/cmath:415:11: error: ‘sinh’ has not been declared in ‘::’ 415 | using ::sinh; | ^~~~ /usr/include/c++/13/cmath:434:11: error: ‘sqrt’ has not been declared in ‘::’ 434 | using ::sqrt; | ^~~~ /usr/include/c++/13/cmath:453:11: error: ‘tan’ has not been declared in ‘::’ 453 | using ::tan; | ^~~ /usr/include/c++/13/cmath:472:11: error: ‘tanh’ has not been declared in ‘::’ 472 | using ::tanh; | ^~~~ /usr/include/c++/13/cmath:1881:11: error: ‘double_t’ has not been declared in ‘::’ 1881 | using ::double_t; | ^~~~~~~~ /usr/include/c++/13/cmath:1882:11: error: ‘float_t’ has not been declared in ‘::’ 1882 | using ::float_t; | ^~~~~~~ /usr/include/c++/13/cmath:1885:11: error: ‘acosh’ has not been declared in ‘::’ 1885 | using ::acosh; | ^~~~~ /usr/include/c++/13/cmath:1886:11: error: ‘acoshf’ has not been declared in ‘::’ 1886 | using ::acoshf; | ^~~~~~ /usr/include/c++/13/cmath:1887:11: error: ‘acoshl’ has not been declared in ‘::’ 1887 | using ::acoshl; | ^~~~~~ /usr/include/c++/13/cmath:1889:11: error: ‘asinh’ has not been declared in ‘::’ 1889 | using ::asinh; | ^~~~~ /usr/include/c++/13/cmath:1890:11: error: ‘asinhf’ has not been declared in ‘::’ 1890 | using ::asinhf; | ^~~~~~ /usr/include/c++/13/cmath:1891:11: error: ‘asinhl’ has not been declared in ‘::’ 1891 | using ::asinhl; | ^~~~~~ /usr/include/c++/13/cmath:1893:11: error: ‘atanh’ has not been declared in ‘::’ 1893 | using ::atanh; | ^~~~~ /usr/include/c++/13/cmath:1894:11: error: ‘atanhf’ has not been declared in ‘::’ 1894 | using ::atanhf; | ^~~~~~ /usr/include/c++/13/cmath:1895:11: error: ‘atanhl’ has not been declared in ‘::’ 1895 | using ::atanhl; | ^~~~~~ /usr/include/c++/13/cmath:1897:11: error: ‘cbrt’ has not been declared in ‘::’ 1897 | using ::cbrt; | ^~~~ /usr/include/c++/13/cmath:1898:11: error: ‘cbrtf’ has not been declared in ‘::’ 1898 | using ::cbrtf; | ^~~~~ /usr/include/c++/13/cmath:1899:11: error: ‘cbrtl’ has not been declared in ‘::’ 1899 | using ::cbrtl; | ^~~~~ /usr/include/c++/13/cmath:1901:11: error: ‘copysign’ has not been declared in ‘::’ 1901 | using ::copysign; | ^~~~~~~~ /usr/include/c++/13/cmath:1902:11: error: ‘copysignf’ has not been declared in ‘::’ 1902 | using ::copysignf; | ^~~~~~~~~ /usr/include/c++/13/cmath:1903:11: error: ‘copysignl’ has not been declared in ‘::’ 1903 | using ::copysignl; | ^~~~~~~~~ /usr/include/c++/13/cmath:1905:11: error: ‘erf’ has not been declared in ‘::’ 1905 | using ::erf; | ^~~ /usr/include/c++/13/cmath:1906:11: error: ‘erff’ has not been declared in ‘::’ 1906 | using ::erff; | ^~~~ /usr/include/c++/13/cmath:1907:11: error: ‘erfl’ has not been declared in ‘::’ 1907 | using ::erfl; | ^~~~ /usr/include/c++/13/cmath:1909:11: error: ‘erfc’ has not been declared in ‘::’ 1909 | using ::erfc; | ^~~~ /usr/include/c++/13/cmath:1910:11: error: ‘erfcf’ has not been declared in ‘::’ 1910 | using ::erfcf; | ^~~~~ /usr/include/c++/13/cmath:1911:11: error: ‘erfcl’ has not been declared in ‘::’ 1911 | using ::erfcl; | ^~~~~ /usr/include/c++/13/cmath:1913:11: error: ‘exp2’ has not been declared in ‘::’ 1913 | using ::exp2; | ^~~~ /usr/include/c++/13/cmath:1914:11: error: ‘exp2f’ has not been declared in ‘::’ 1914 | using ::exp2f; | ^~~~~ /usr/include/c++/13/cmath:1915:11: error: ‘exp2l’ has not been declared in ‘::’ 1915 | using ::exp2l; | ^~~~~ /usr/include/c++/13/cmath:1917:11: error: ‘expm1’ has not been declared in ‘::’ 1917 | using ::expm1; | ^~~~~ /usr/include/c++/13/cmath:1918:11: error: ‘expm1f’ has not been declared in ‘::’ 1918 | using ::expm1f; | ^~~~~~ /usr/include/c++/13/cmath:1919:11: error: ‘expm1l’ has not been declared in ‘::’ 1919 | using ::expm1l; | ^~~~~~ /usr/include/c++/13/cmath:1921:11: error: ‘fdim’ has not been declared in ‘::’ 1921 | using ::fdim; | ^~~~ /usr/include/c++/13/cmath:1922:11: error: ‘fdimf’ has not been declared in ‘::’ 1922 | using ::fdimf; | ^~~~~ /usr/include/c++/13/cmath:1923:11: error: ‘fdiml’ has not been declared in ‘::’ 1923 | using ::fdiml; | ^~~~~ /usr/include/c++/13/cmath:1925:11: error: ‘fma’ has not been declared in ‘::’ 1925 | using ::fma; | ^~~ /usr/include/c++/13/cmath:1926:11: error: ‘fmaf’ has not been declared in ‘::’ 1926 | using ::fmaf; | ^~~~ /usr/include/c++/13/cmath:1927:11: error: ‘fmal’ has not been declared in ‘::’ 1927 | using ::fmal; | ^~~~ /usr/include/c++/13/cmath:1929:11: error: ‘fmax’ has not been declared in ‘::’ 1929 | using ::fmax; | ^~~~ /usr/include/c++/13/cmath:1930:11: error: ‘fmaxf’ has not been declared in ‘::’ 1930 | using ::fmaxf; | ^~~~~ /usr/include/c++/13/cmath:1931:11: error: ‘fmaxl’ has not been declared in ‘::’ 1931 | using ::fmaxl; | ^~~~~ /usr/include/c++/13/cmath:1933:11: error: ‘fmin’ has not been declared in ‘::’ 1933 | using ::fmin; | ^~~~ /usr/include/c++/13/cmath:1934:11: error: ‘fminf’ has not been declared in ‘::’ 1934 | using ::fminf; | ^~~~~ /usr/include/c++/13/cmath:1935:11: error: ‘fminl’ has not been declared in ‘::’ 1935 | using ::fminl; | ^~~~~ /usr/include/c++/13/cmath:1937:11: error: ‘hypot’ has not been declared in ‘::’ 1937 | using ::hypot; | ^~~~~ /usr/include/c++/13/cmath:1938:11: error: ‘hypotf’ has not been declared in ‘::’ 1938 | using ::hypotf; | ^~~~~~ /usr/include/c++/13/cmath:1939:11: error: ‘hypotl’ has not been declared in ‘::’ 1939 | using ::hypotl; | ^~~~~~ /usr/include/c++/13/cmath:1941:11: error: ‘ilogb’ has not been declared in ‘::’ 1941 | using ::ilogb; | ^~~~~ /usr/include/c++/13/cmath:1942:11: error: ‘ilogbf’ has not been declared in ‘::’ 1942 | using ::ilogbf; | ^~~~~~ /usr/include/c++/13/cmath:1943:11: error: ‘ilogbl’ has not been declared in ‘::’ 1943 | using ::ilogbl; | ^~~~~~ /usr/include/c++/13/cmath:1945:11: error: ‘lgamma’ has not been declared in ‘::’ 1945 | using ::lgamma; | ^~~~~~ /usr/include/c++/13/cmath:1946:11: error: ‘lgammaf’ has not been declared in ‘::’ 1946 | using ::lgammaf; | ^~~~~~~ /usr/include/c++/13/cmath:1947:11: error: ‘lgammal’ has not been declared in ‘::’ 1947 | using ::lgammal; | ^~~~~~~ /usr/include/c++/13/cmath:1950:11: error: ‘llrint’ has not been declared in ‘::’ 1950 | using ::llrint; | ^~~~~~ /usr/include/c++/13/cmath:1951:11: error: ‘llrintf’ has not been declared in ‘::’ 1951 | using ::llrintf; | ^~~~~~~ /usr/include/c++/13/cmath:1952:11: error: ‘llrintl’ has not been declared in ‘::’ 1952 | using ::llrintl; | ^~~~~~~ /usr/include/c++/13/cmath:1954:11: error: ‘llround’ has not been declared in ‘::’ 1954 | using ::llround; | ^~~~~~~ /usr/include/c++/13/cmath:1955:11: error: ‘llroundf’ has not been declared in ‘::’ 1955 | using ::llroundf; | ^~~~~~~~ /usr/include/c++/13/cmath:1956:11: error: ‘llroundl’ has not been declared in ‘::’ 1956 | using ::llroundl; | ^~~~~~~~ /usr/include/c++/13/cmath:1959:11: error: ‘log1p’ has not been declared in ‘::’ 1959 | using ::log1p; | ^~~~~ /usr/include/c++/13/cmath:1960:11: error: ‘log1pf’ has not been declared in ‘::’ 1960 | using ::log1pf; | ^~~~~~ /usr/include/c++/13/cmath:1961:11: error: ‘log1pl’ has not been declared in ‘::’ 1961 | using ::log1pl; | ^~~~~~ /usr/include/c++/13/cmath:1963:11: error: ‘log2’ has not been declared in ‘::’ 1963 | using ::log2; | ^~~~ /usr/include/c++/13/cmath:1964:11: error: ‘log2f’ has not been declared in ‘::’ 1964 | using ::log2f; | ^~~~~ /usr/include/c++/13/cmath:1965:11: error: ‘log2l’ has not been declared in ‘::’ 1965 | using ::log2l; | ^~~~~ /usr/include/c++/13/cmath:1967:11: error: ‘logb’ has not been declared in ‘::’ 1967 | using ::logb; | ^~~~ /usr/include/c++/13/cmath:1968:11: error: ‘logbf’ has not been declared in ‘::’ 1968 | using ::logbf; | ^~~~~ /usr/include/c++/13/cmath:1969:11: error: ‘logbl’ has not been declared in ‘::’ 1969 | using ::logbl; | ^~~~~ /usr/include/c++/13/cmath:1971:11: error: ‘lrint’ has not been declared in ‘::’ 1971 | using ::lrint; | ^~~~~ /usr/include/c++/13/cmath:1972:11: error: ‘lrintf’ has not been declared in ‘::’ 1972 | using ::lrintf; | ^~~~~~ /usr/include/c++/13/cmath:1973:11: error: ‘lrintl’ has not been declared in ‘::’ 1973 | using ::lrintl; | ^~~~~~ /usr/include/c++/13/cmath:1975:11: error: ‘lround’ has not been declared in ‘::’ 1975 | using ::lround; | ^~~~~~ /usr/include/c++/13/cmath:1976:11: error: ‘lroundf’ has not been declared in ‘::’ 1976 | using ::lroundf; | ^~~~~~~ /usr/include/c++/13/cmath:1977:11: error: ‘lroundl’ has not been declared in ‘::’ 1977 | using ::lroundl; | ^~~~~~~ /usr/include/c++/13/cmath:1979:11: error: ‘nan’ has not been declared in ‘::’ 1979 | using ::nan; | ^~~ /usr/include/c++/13/cmath:1980:11: error: ‘nanf’ has not been declared in ‘::’ 1980 | using ::nanf; | ^~~~ /usr/include/c++/13/cmath:1981:11: error: ‘nanl’ has not been declared in ‘::’ 1981 | using ::nanl; | ^~~~ /usr/include/c++/13/cmath:1983:11: error: ‘nearbyint’ has not been declared in ‘::’ 1983 | using ::nearbyint; | ^~~~~~~~~ /usr/include/c++/13/cmath:1984:11: error: ‘nearbyintf’ has not been declared in ‘::’ 1984 | using ::nearbyintf; | ^~~~~~~~~~ /usr/include/c++/13/cmath:1985:11: error: ‘nearbyintl’ has not been declared in ‘::’ 1985 | using ::nearbyintl; | ^~~~~~~~~~ /usr/include/c++/13/cmath:1987:11: error: ‘nextafter’ has not been declared in ‘::’ 1987 | using ::nextafter; | ^~~~~~~~~ /usr/include/c++/13/cmath:1988:11: error: ‘nextafterf’ has not been declared in ‘::’ 1988 | using ::nextafterf; | ^~~~~~~~~~ /usr/include/c++/13/cmath:1989:11: error: ‘nextafterl’ has not been declared in ‘::’ 1989 | using ::nextafterl; | ^~~~~~~~~~ /usr/include/c++/13/cmath:1991:11: error: ‘nexttoward’ has not been declared in ‘::’ 1991 | using ::nexttoward; | ^~~~~~~~~~ /usr/include/c++/13/cmath:1992:11: error: ‘nexttowardf’ has not been declared in ‘::’ 1992 | using ::nexttowardf; | ^~~~~~~~~~~ /usr/include/c++/13/cmath:1993:11: error: ‘nexttowardl’ has not been declared in ‘::’ 1993 | using ::nexttowardl; | ^~~~~~~~~~~ /usr/include/c++/13/cmath:1995:11: error: ‘remainder’ has not been declared in ‘::’ 1995 | using ::remainder; | ^~~~~~~~~ /usr/include/c++/13/cmath:1996:11: error: ‘remainderf’ has not been declared in ‘::’ 1996 | using ::remainderf; | ^~~~~~~~~~ /usr/include/c++/13/cmath:1997:11: error: ‘remainderl’ has not been declared in ‘::’ 1997 | using ::remainderl; | ^~~~~~~~~~ /usr/include/c++/13/cmath:1999:11: error: ‘remquo’ has not been declared in ‘::’ 1999 | using ::remquo; | ^~~~~~ /usr/include/c++/13/cmath:2000:11: error: ‘remquof’ has not been declared in ‘::’ 2000 | using ::remquof; | ^~~~~~~ /usr/include/c++/13/cmath:2001:11: error: ‘remquol’ has not been declared in ‘::’ 2001 | using ::remquol; | ^~~~~~~ /usr/include/c++/13/cmath:2003:11: error: ‘rint’ has not been declared in ‘::’ 2003 | using ::rint; | ^~~~ /usr/include/c++/13/cmath:2004:11: error: ‘rintf’ has not been declared in ‘::’ 2004 | using ::rintf; | ^~~~~ /usr/include/c++/13/cmath:2005:11: error: ‘rintl’ has not been declared in ‘::’ 2005 | using ::rintl; | ^~~~~ /usr/include/c++/13/cmath:2007:11: error: ‘round’ has not been declared in ‘::’ 2007 | using ::round; | ^~~~~ /usr/include/c++/13/cmath:2008:11: error: ‘roundf’ has not been declared in ‘::’ 2008 | using ::roundf; | ^~~~~~ /usr/include/c++/13/cmath:2009:11: error: ‘roundl’ has not been declared in ‘::’ 2009 | using ::roundl; | ^~~~~~ /usr/include/c++/13/cmath:2011:11: error: ‘scalbln’ has not been declared in ‘::’ 2011 | using ::scalbln; | ^~~~~~~ /usr/include/c++/13/cmath:2012:11: error: ‘scalblnf’ has not been declared in ‘::’ 2012 | using ::scalblnf; | ^~~~~~~~ /usr/include/c++/13/cmath:2013:11: error: ‘scalblnl’ has not been declared in ‘::’ 2013 | using ::scalblnl; | ^~~~~~~~ /usr/include/c++/13/cmath:2015:11: error: ‘scalbn’ has not been declared in ‘::’ 2015 | using ::scalbn; | ^~~~~~ /usr/include/c++/13/cmath:2016:11: error: ‘scalbnf’ has not been declared in ‘::’ 2016 | using ::scalbnf; | ^~~~~~~ /usr/include/c++/13/cmath:2017:11: error: ‘scalbnl’ has not been declared in ‘::’ 2017 | using ::scalbnl; | ^~~~~~~ /usr/include/c++/13/cmath:2019:11: error: ‘tgamma’ has not been declared in ‘::’ 2019 | using ::tgamma; | ^~~~~~ /usr/include/c++/13/cmath:2020:11: error: ‘tgammaf’ has not been declared in ‘::’ 2020 | using ::tgammaf; | ^~~~~~~ /usr/include/c++/13/cmath:2021:11: error: ‘tgammal’ has not been declared in ‘::’ 2021 | using ::tgammal; | ^~~~~~~ /usr/include/c++/13/cmath:2023:11: error: ‘trunc’ has not been declared in ‘::’ 2023 | using ::trunc; | ^~~~~ /usr/include/c++/13/cmath:2024:11: error: ‘truncf’ has not been declared in ‘::’ 2024 | using ::truncf; | ^~~~~~ /usr/include/c++/13/cmath:2025:11: error: ‘truncl’ has not been declared in ‘::’ 2025 | using ::truncl; | ^~~~~~ In file included from /usr/include/c++/13/cctype:42, from /usr/include/c++/13/bits/localefwd.h:42, from /usr/include/c++/13/ios:43, from /usr/include/c++/13/ostream:40, from /usr/include/c++/13/iostream:41, from pal1234.cpp:5: /usr/include/ctype.h:81:14: error: ‘__int32_t’ does not name a type; did you mean ‘__int128_t’? 81 | extern const __int32_t **__ctype_tolower_loc (void) | ^~~~~~~~~ | __int128_t /usr/include/ctype.h:83:14: error: ‘__int32_t’ does not name a type; did you mean ‘__int128_t’? 83 | extern const __int32_t **__ctype_toupper_loc (void) | ^~~~~~~~~ | __int128_t In file included from /usr/include/pthread.h:22, from /usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/13/bits/gthr.h:148, from /usr/include/c++/13/ext/atomicity.h:35, from /usr/include/c++/13/bits/ios_base.h:39, from /usr/include/c++/13/ios:44: /usr/include/sched.h:54:28: error: ‘__pid_t’ was not declared in this scope 54 | extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) | ^~~~~~~ /usr/include/sched.h:54:43: error: expected primary-expression before ‘const’ 54 | extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) | ^~~~~ /usr/include/sched.h:54:76: error: expression list treated as compound expression in initializer [-fpermissive] 54 | extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) | ^ /usr/include/sched.h:58:28: error: ‘__pid_t’ was not declared in this scope 58 | extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __THROW; | ^~~~~~~ /usr/include/sched.h:58:43: error: expected primary-expression before ‘struct’ 58 | extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __THROW; | ^~~~~~ /usr/include/sched.h:58:70: error: expression list treated as compound expression in initializer [-fpermissive] 58 | extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __THROW; | ^ /usr/include/sched.h:61:32: error: ‘__pid_t’ was not declared in this scope 61 | extern int sched_setscheduler (__pid_t __pid, int __policy, | ^~~~~~~ /usr/include/sched.h:61:47: error: expected primary-expression before ‘int’ 61 | extern int sched_setscheduler (__pid_t __pid, int __policy, | ^~~ /usr/include/sched.h:62:32: error: expected primary-expression before ‘const’ 62 | const struct sched_param *__param) __THROW; | ^~~~~ /usr/include/sched.h:62:65: error: expression list treated as compound expression in initializer [-fpermissive] 62 | const struct sched_param *__param) __THROW; | ^ /usr/include/sched.h:65:32: error: ‘__pid_t’ was not declared in this scope 65 | extern int sched_getscheduler (__pid_t __pid) __THROW; | ^~~~~~~ /usr/include/sched.h:78:35: error: ‘__pid_t’ was not declared in this scope 78 | extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW; | ^~~~~~~ /usr/include/sched.h:78:50: error: expected primary-expression before ‘struct’ 78 | extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW; | ^~~~~~ /usr/include/sched.h:78:70: error: expression list treated as compound expression in initializer [-fpermissive] 78 | extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW; | ^ /usr/include/sched.h:130:31: error: ‘__pid_t’ was not declared in this scope 130 | extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, | ^~~~~~~ /usr/include/sched.h:130:53: error: expected primary-expression before ‘__cpusetsize’ 130 | extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, | ^~~~~~~~~~~~ /usr/include/sched.h:131:31: error: expected primary-expression before ‘const’ 131 | const cpu_set_t *__cpuset) __THROW; | ^~~~~ /usr/include/sched.h:131:56: error: expression list treated as compound expression in initializer [-fpermissive] 131 | const cpu_set_t *__cpuset) __THROW; | ^ /usr/include/sched.h:134:31: error: ‘__pid_t’ was not declared in this scope 134 | extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, | ^~~~~~~ /usr/include/sched.h:134:53: error: expected primary-expression before ‘__cpusetsize’ 134 | extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, | ^~~~~~~~~~~~ /usr/include/sched.h:135:41: error: expected primary-expression before ‘*’ token 135 | cpu_set_t *__cpuset) __THROW; | ^ /usr/include/sched.h:135:42: error: ‘__cpuset’ was not declared in this scope 135 | cpu_set_t *__cpuset) __THROW; | ^~~~~~~~ /usr/include/sched.h:135:50: error: expression list treated as compound expression in initializer [-fpermissive] 135 | cpu_set_t *__cpuset) __THROW; | ^ In file included from /usr/include/x86_64-linux-gnu/bits/time.h:73, from /usr/include/time.h:33, from /usr/include/pthread.h:23: /usr/include/x86_64-linux-gnu/bits/timex.h:59:3: error: ‘__syscall_slong_t’ does not name a type 59 | __syscall_slong_t offset; /* time offset (usec) */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/timex.h:60:3: error: ‘__syscall_slong_t’ does not name a type 60 | __syscall_slong_t freq; /* frequency offset (scaled ppm) */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/timex.h:61:3: error: ‘__syscall_slong_t’ does not name a type 61 | __syscall_slong_t maxerror; /* maximum error (usec) */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/timex.h:62:3: error: ‘__syscall_slong_t’ does not name a type 62 | __syscall_slong_t esterror; /* estimated error (usec) */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/timex.h:64:3: error: ‘__syscall_slong_t’ does not name a type 64 | __syscall_slong_t constant; /* pll time constant */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/timex.h:65:3: error: ‘__syscall_slong_t’ does not name a type 65 | __syscall_slong_t precision; /* clock precision (usec) (ro) */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/timex.h:66:3: error: ‘__syscall_slong_t’ does not name a type 66 | __syscall_slong_t tolerance; /* clock frequency tolerance (ppm) (ro) */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/timex.h:68:3: error: ‘__syscall_slong_t’ does not name a type 68 | __syscall_slong_t tick; /* (modified) usecs between clock ticks */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/timex.h:69:3: error: ‘__syscall_slong_t’ does not name a type 69 | __syscall_slong_t ppsfreq; /* pps frequency (scaled ppm) (ro) */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/timex.h:70:3: error: ‘__syscall_slong_t’ does not name a type 70 | __syscall_slong_t jitter; /* pps jitter (us) (ro) */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/timex.h:72:3: error: ‘__syscall_slong_t’ does not name a type 72 | __syscall_slong_t stabil; /* pps stability (scaled ppm) (ro) */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/timex.h:73:3: error: ‘__syscall_slong_t’ does not name a type 73 | __syscall_slong_t jitcnt; /* jitter limit exceeded (ro) */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/timex.h:74:3: error: ‘__syscall_slong_t’ does not name a type 74 | __syscall_slong_t calcnt; /* calibration intervals (ro) */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/timex.h:75:3: error: ‘__syscall_slong_t’ does not name a type 75 | __syscall_slong_t errcnt; /* calibration errors (ro) */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/timex.h:76:3: error: ‘__syscall_slong_t’ does not name a type 76 | __syscall_slong_t stbcnt; /* stability limit exceeded (ro) */ | ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/time.h:78:27: error: ‘__clockid_t’ was not declared in this scope 78 | extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) __THROW __nonnull((2)); | ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/time.h:78:51: error: expected primary-expression before ‘struct’ 78 | extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) __THROW __nonnull((2)); | ^~~~~~ /usr/include/x86_64-linux-gnu/bits/time.h:78:70: error: expression list treated as compound expression in initializer [-fpermissive] 78 | extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) __THROW __nonnull((2)); | ^ /usr/include/time.h:72:8: error: ‘clock_t’ does not name a type 72 | extern clock_t clock (void) __THROW; | ^~~~~~~ /usr/include/time.h:49:1: note: ‘clock_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’? 48 | # include <bits/types/struct_itimerspec.h> +++ |+#include <ctime> 49 | struct sigevent; /usr/include/time.h:76:8: error: ‘time_t’ does not name a type 76 | extern time_t time (time_t *__timer) __THROW; | ^~~~~~ /usr/include/time.h:76:8: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’? /usr/include/time.h:79:25: error: ‘time_t’ was not declared in this scope 79 | extern double difftime (time_t __time1, time_t __time0) | ^~~~~~ /usr/include/time.h:79:25: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’? /usr/include/time.h:79:41: error: ‘time_t’ was not declared in this scope 79 | extern double difftime (time_t __time1, time_t __time0) | ^~~~~~ /usr/include/time.h:79:41: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’? /usr/include/time.h:79:55: error: expression list treated as compound expression in initializer [-fpermissive] 79 | extern double difftime (time_t __time1, time_t __time0) | ^ /usr/include/time.h:83:8: error: ‘time_t’ does not name a type 83 | extern time_t mktime (struct tm *__tp) __THROW; | ^~~~~~ /usr/include/time.h:83:8: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’? /usr/include/time.h:133:33: error: ‘time_t’ does not name a type 133 | extern struct tm *gmtime (const time_t *__timer) __THROW; | ^~~~~~ /usr/include/time.h:133:33: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’? /usr/include/time.h:137:36: error: ‘time_t’ does not name a type 137 | extern struct tm *localtime (const time_t *__timer) __THROW; | ^~~~~~ /usr/include/time.h:137:36: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’? /usr/include/time.h:155:35: error: ‘time_t’ does not name a type 155 | extern struct tm *gmtime_r (const time_t *__restrict __timer, | ^~~~~~ /usr/include/time.h:155:35: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’? /usr/include/time.h:160:38: error: ‘time_t’ does not name a type 160 | extern struct tm *localtime_r (const time_t *__restrict __timer, | ^~~~~~ /usr/include/time.h:160:38: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’? /usr/include/time.h:184:27: error: ‘time_t’ does not name a type 184 | extern char *ctime (const time_t *__timer) __THROW; | ^~~~~~ /usr/include/time.h:184:27: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’? /usr/include/time.h:203:29: error: ‘time_t’ does not name a type 203 | extern char *ctime_r (const time_t *__restrict __timer, | ^~~~~~ /usr/include/time.h:203:29: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’? /usr/include/time.h:247:8: error: ‘time_t’ does not name a type 247 | extern time_t timegm (struct tm *__tp) __THROW; | ^~~~~~ /usr/include/time.h:247:8: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’? /usr/include/time.h:264:8: error: ‘time_t’ does not name a type 264 | extern time_t timelocal (struct tm *__tp) __THROW; | ^~~~~~ /usr/include/time.h:264:8: note: ‘time_t’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’? /usr/include/time.h:286:26: error: ‘clockid_t’ was not declared in this scope 286 | extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW; | ^~~~~~~~~ /usr/include/time.h:286:48: error: expected primary-expression before ‘struct’ 286 | extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW; | ^~~~~~ /usr/include/time.h:286:70: error: expression list treated as compound expression in initializer [-fpermissive] 286 | extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW; | ^ /usr/include/time.h:289:27: error: ‘clockid_t’ was not declared in this scope 289 | extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) | ^~~~~~~~~ /usr/include/time.h:289:49: error: expected primary-expression before ‘struct’ 289 | extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) | ^~~~~~ /usr/include/time.h:289:70: error: expression list treated as compound expression in initializer [-fpermissive] 289 | extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) | ^ /usr/include/time.h:293:27: error: ‘clockid_t’ was not declared in this scope 293 | extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) | ^~~~~~~~~ /usr/include/time.h:293:49: error: expected primary-expression before ‘const’ 293 | extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) | ^~~~~ /usr/include/time.h:293:76: error: expression list treated as compound expression in initializer [-fpermissive] 293 | extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) | ^ /usr/include/time.h:324:29: error: ‘clockid_t’ was not declared in this scope 324 | extern int clock_nanosleep (clockid_t __clock_id, int __flags, | ^~~~~~~~~ /usr/include/time.h:324:51: error: expected primary-expression before ‘int’ 324 | extern int clock_nanosleep (clockid_t __clock_id, int __flags, | ^~~ /usr/include/time.h:325:29: error: expected primary-expression before ‘const’ 325 | const struct timespec *__req, | ^~~~~ /usr/include/time.h:326:29: error: expected primary-expression before ‘struct’ 326 | struct timespec *__rem); | ^~~~~~ /usr/include/time.h:326:51: error: expression list treated as compound expression in initializer [-fpermissive] 326 | struct timespec *__rem); | ^ /usr/include/time.h:339:33: error: ‘pid_t’ was not declared in this scope 339 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW; | ^~~~~ /usr/include/time.h:339:46: error: ‘clockid_t’ was not declared in this scope 339 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW; | ^~~~~~~~~ /usr/include/time.h:339:57: error: ‘__clock_id’ was not declared in this scope 339 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW; | ^~~~~~~~~~ /usr/include/time.h:339:67: error: expression list treated as compound expression in initializer [-fpermissive] 339 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW; | ^ /usr/include/time.h:344:26: error: ‘clockid_t’ was not declared in this scope 344 | extern int timer_create (clockid_t __clock_id, | ^~~~~~~~~ /usr/include/time.h:345:26: error: expected primary-expression before ‘struct’ 345 | struct sigevent *__restrict __evp, | ^~~~~~ /usr/include/time.h:346:26: error: ‘timer_t’ was not declared in this scope; did you mean ‘timex’? 346 | timer_t *__restrict __timerid) __THROW; | ^~~~~~~ | timex /usr/include/time.h:346:35: error: expected primary-expression before ‘__restrict’ 346 | timer_t *__restrict __timerid) __THROW; | ^~~~~~~~~~ /usr/include/time.h:346:55: error: expression list treated as compound expression in initializer [-fpermissive] 346 | timer_t *__restrict __timerid) __THROW; | ^ /usr/include/time.h:349:26: error: ‘timer_t’ was not declared in this scope; did you mean ‘timex’? 349 | extern int timer_delete (timer_t __timerid) __THROW; | ^~~~~~~ | timex /usr/include/time.h:353:27: error: ‘timer_t’ was not declared in this scope; did you mean ‘timex’? 353 | extern int timer_settime (timer_t __timerid, int __flags, | ^~~~~~~ | timex /usr/include/time.h:353:46: error: expected primary-expression before ‘int’ 353 | extern int timer_settime (timer_t __timerid, int __flags, | ^~~ /usr/include/time.h:354:27: error: expected primary-expression before ‘const’ 354 | const struct itimerspec *__restrict __value, | ^~~~~ /usr/include/time.h:355:27: error: expected primary-expression before ‘struct’ 355 | struct itimerspec *__restrict __ovalue) __THROW; | ^~~~~~ /usr/include/time.h:355:65: error: expression list treated as compound expression in initializer [-fpermissive] 355 | struct itimerspec *__restrict __ovalue) __THROW; | ^ /usr/include/time.h:358:27: error: ‘timer_t’ was not declared in this scope; did you mean ‘timex’? 358 | extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) | ^~~~~~~ | timex /usr/include/time.h:358:46: error: expected primary-expression before ‘struct’ 358 | extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) | ^~~~~~ /usr/include/time.h:358:72: error: expression list treated as compound expression in initializer [-fpermissive] 358 | extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) | ^ /usr/include/time.h:377:30: error: ‘timer_t’ was not declared in this scope; did you mean ‘timex’? 377 | extern int timer_getoverrun (timer_t __timerid) __THROW; | ^~~~~~~ | timex /usr/include/pthread.h:244:34: error: ‘clockid_t’ has not been declared 244 | clockid_t __clockid, | ^~~~~~~~~ /usr/include/pthread.h:818:37: error: ‘clockid_t’ has not been declared 818 | clockid_t __clockid, | ^~~~~~~~~ /usr/include/pthread.h:1005:40: error: ‘clockid_t’ has not been declared 1005 | clockid_t __clockid, | ^~~~~~~~~ /usr/include/pthread.h:1052:40: error: ‘clockid_t’ has not been declared 1052 | clockid_t __clockid, | ^~~~~~~~~ /usr/include/pthread.h:1173:36: error: ‘__clockid_t’ has not been declared 1173 | __clockid_t __clock_id, | ^~~~~~~~~~~ /usr/include/pthread.h:1215:39: error: ‘__clockid_t’ has not been declared 1215 | __clockid_t *__restrict __clock_id) | ^~~~~~~~~~~ /usr/include/pthread.h:1220:39: error: ‘__clockid_t’ has not been declared 1220 | __clockid_t __clock_id) | ^~~~~~~~~~~ /usr/include/pthread.h:1316:35: error: ‘__clockid_t’ has not been declared 1316 | __clockid_t *__clock_id) | ^~~~~~~~~~~ In file included from /usr/include/stdio.h:40, from /usr/include/c++/13/cstdio:42, from /usr/include/c++/13/ext/string_conversions.h:45, from /usr/include/c++/13/bits/basic_string.h:4109, from /usr/include/c++/13/string:54, from /usr/include/c++/13/bits/locale_classes.h:40, from /usr/include/c++/13/bits/ios_base.h:41: /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h:12:3: error: ‘__off_t’ does not name a type 12 | __off_t __pos; | ^~~~~~~ In file included from /usr/include/stdio.h:41: /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h:12:3: error: ‘__off64_t’ does not name a type 12 | __off64_t __pos; | ^~~~~~~~~ In file included from /usr/include/stdio.h:44: /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h:74:3: error: ‘__off_t’ does not name a type 74 | __off_t _old_offset; /* This used to be _offset but it's too small. */ | ^~~~~~~ /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h:89:3: error: ‘__off64_t’ does not name a type 89 | __off64_t _offset; | ^~~~~~~~~ In file included from /usr/include/stdio.h:47: /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:27:9: error: ‘__ssize_t’ does not name a type; did you mean ‘size_t’? 27 | typedef __ssize_t cookie_read_function_t (void *__cookie, char *__buf, | ^~~~~~~~~ | size_t /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:36:9: error: ‘__ssize_t’ does not name a type; did you mean ‘size_t’? 36 | typedef __ssize_t cookie_write_function_t (void *__cookie, const char *__buf, | ^~~~~~~~~ | size_t /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:45:53: error: ‘__off64_t’ has not been declared 45 | typedef int cookie_seek_function_t (void *__cookie, __off64_t *__pos, int __w); | ^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:57:3: error: ‘cookie_read_function_t’ does not name a type; did you mean ‘cookie_seek_function_t’? 57 | cookie_read_function_t *read; /* Read bytes. */ | ^~~~~~~~~~~~~~~~~~~~~~ | cookie_seek_function_t /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h:58:3: error: ‘cookie_write_function_t’ does not name a type; did you mean ‘cookie_close_function_t’? 58 | cookie_write_function_t *write; /* Write bytes. */ | ^~~~~~~~~~~~~~~~~~~~~~~ | cookie_close_function_t /usr/include/stdio.h:694:8: error: ‘__ssize_t’ does not name a type; did you mean ‘size_t’? 694 | extern __ssize_t __getdelim (char **__restrict __lineptr, | ^~~~~~~~~ | size_t /usr/include/stdio.h:697:8: error: ‘__ssize_t’ does not name a type; did you mean ‘size_t’? 697 | extern __ssize_t getdelim (char **__restrict __lineptr, | ^~~~~~~~~ | size_t /usr/include/stdio.h:707:8: error: ‘__ssize_t’ does not name a type; did you mean ‘size_t’? 707 | extern __ssize_t getline (char **__restrict __lineptr, | ^~~~~~~~~ | size_t /usr/include/stdio.h:803:36: error: ‘__off_t’ has not been declared 803 | extern int fseeko (FILE *__stream, __off_t __off, int __whence) | ^~~~~~~ /usr/include/stdio.h:809:8: error: ‘__off_t’ does not name a type 809 | extern __off_t ftello (FILE *__stream) __wur __nonnull ((1)); | ^~~~~~~ /usr/include/stdio.h:851:38: error: ‘__off64_t’ has not been declared 851 | extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence) | ^~~~~~~~~ /usr/include/stdio.h:853:8: error: ‘__off64_t’ does not name a type 853 | extern __off64_t ftello64 (FILE *__stream) __wur __nonnull ((1)); | ^~~~~~~~~ In file included from /usr/include/stdio.h:976: /usr/include/x86_64-linux-gnu/bits/stdio.h:117:16: error: ‘__ssize_t’ does not name a type; did you mean ‘size_t’? 117 | __STDIO_INLINE __ssize_t | ^~~~~~~~~ | size_t In file included from /usr/include/c++/13/cwctype:50, from /usr/include/c++/13/bits/locale_facets.h:39, from /usr/include/c++/13/bits/basic_ios.h:37, from /usr/include/c++/13/ios:46: /usr/include/wctype.h:48:15: error: ‘__int32_t’ does not name a type; did you mean ‘__int128_t’? 48 | typedef const __int32_t *wctrans_t; | ^~~~~~~~~ | __int128_t /usr/include/wctype.h:52:8: error: ‘wctrans_t’ does not name a type 52 | extern wctrans_t wctrans (const char *__property) __THROW; | ^~~~~~~~~ /usr/include/wctype.h:55:39: error: ‘wctrans_t’ has not been declared 55 | extern wint_t towctrans (wint_t __wc, wctrans_t __desc) __THROW; | ^~~~~~~~~ /usr/include/wctype.h:137:8: error: ‘wctrans_t’ does not name a type 137 | extern wctrans_t wctrans_l (const char *__property, locale_t __locale) | ^~~~~~~~~ /usr/include/wctype.h:141:41: error: ‘wctrans_t’ has not been declared 141 | extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, | ^~~~~~~~~ /usr/include/c++/13/cwctype:82:11: error: ‘wctrans_t’ has not been declared in ‘::’ 82 | using ::wctrans_t; | ^~~~~~~~~ /usr/include/c++/13/cwctype:104:11: error: ‘wctrans’ has not been declared in ‘::’ 104 | using ::wctrans; | ^~~~~~~ pal1234.cpp: In function ‘bool isPalindrome(int, std::string)’: pal1234.cpp:10:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 10 | for (int i=0; i < md.length()-1; ++i) { | ~~^~~~~~~~~~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Pal1234 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ă.