Borderou de evaluare (job #2384576)

Utilizator PopescuAndreiAlexandruPopescu Andrei Alexandru PopescuAndreiAlexandru Data 20 martie 2019 21:37:53
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:1: error: expected unqualified-id before numeric constant 1 ^ In file included from /usr/include/c++/6/iosfwd:40:0, from /usr/include/c++/6/ios:38, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:97: /usr/include/c++/6/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++/6/exception:170:0, from /usr/include/c++/6/ios:39, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:97: /usr/include/c++/6/bits/exception_ptr.h:97:30: error: field 'nullptr_t' has incomplete type 'std::__exception_ptr::exception_ptr' exception_ptr(nullptr_t) noexcept ^ /usr/include/c++/6/bits/exception_ptr.h:77:11: note: definition of 'class std::__exception_ptr::exception_ptr' is not complete until the closing brace class exception_ptr ^~~~~~~~~~~~~ /usr/include/c++/6/bits/exception_ptr.h:97:30: error: expected ';' at end of member declaration exception_ptr(nullptr_t) noexcept ^ /usr/include/c++/6/bits/exception_ptr.h:97:32: error: expected unqualified-id before 'noexcept' exception_ptr(nullptr_t) noexcept ^~~~~~~~ In file included from /usr/include/c++/6/bits/move.h:57:0, from /usr/include/c++/6/bits/nested_exception.h:40, from /usr/include/c++/6/exception:171, from /usr/include/c++/6/ios:39, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:97: /usr/include/c++/6/type_traits:359:31: error: 'std::size_t' has not been declared template<typename _Tp, std::size_t _Size> ^~~~~~ /usr/include/c++/6/type_traits:360:25: error: '_Size' was not declared in this scope struct is_array<_Tp[_Size]> ^~~~~ /usr/include/c++/6/type_traits:360:31: error: template argument 1 is invalid struct is_array<_Tp[_Size]> ^ /usr/include/c++/6/type_traits:558:37: error: 'nullptr_t' is not a member of 'std' struct __is_null_pointer_helper<std::nullptr_t> ^~~ /usr/include/c++/6/type_traits:558:37: error: 'nullptr_t' is not a member of 'std' /usr/include/c++/6/type_traits:558:51: error: template argument 1 is invalid struct __is_null_pointer_helper<std::nullptr_t> Non zero exit status: 1

Ceva nu functioneaza?