Borderou de evaluare (job #710173)

Utilizator avatar MihneaStoica Mihnea Teodor Stoica MihneaStoica IP ascuns
Problemă Fi (clasa a 7-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 22 mar. 2023 12:25:37 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:1:13: error: duplicate 'short' 1 | #define int short | ^~~~~ In file included from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/cwchar:44, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/bits/postypes.h:40, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/iosfwd:40, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ios:38, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/istream:38, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/fstream:38, from main.cpp:2: /usr/include/wchar.h:429:8: error: 'long' and 'short' specified together 429 | extern long int wcstol (const wchar_t *__restrict __nptr, | ^~~~ /usr/include/wchar.h:434:17: error: 'long' and 'short' specified together 434 | extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, | ^~~~ /usr/include/wchar.h:442:8: error: 'long' and 'short' specified together 442 | extern long long int wcstoll (const wchar_t *__restrict __nptr, | ^~~~ /usr/include/wchar.h:449:17: error: 'long' and 'short' specified together 449 | extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, | ^~~~ /usr/include/wchar.h:458:8: error: 'long' and 'short' specified together 458 | extern long long int wcstoq (const wchar_t *__restrict __nptr, | ^~~~ /usr/include/wchar.h:465:17: error: 'long' and 'short' specified together 465 | extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, | ^~~~ /usr/include/wchar.h:474:8: error: 'long' and 'short' specified together 474 | extern long int wcstol_l (const wchar_t *__restrict __nptr, | ^~~~ /usr/include/wchar.h:478:17: error: 'long' and 'short' specified together 478 | extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, | ^~~~ /usr/include/wchar.h:483:8: error: 'long' and 'short' specified together 483 | extern long long int wcstoll_l (const wchar_t *__restrict __nptr, | ^~~~ /usr/include/wchar.h:488:17: error: 'long' and 'short' specified together 488 | extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, | ^~~~ In file included from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/bits/exception_ptr.h:40, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/exception:153, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/ios:39, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/istream:38, from /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/fstream:38, from main.cpp:2: /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/new:126:26: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive] 126 | _GLIBCXX_NODISCARD void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc) | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/11/include/g++-v11/new:128:26: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive]