Borderou de evaluare (job #829822)

Utilizator avatar Cezar2009 Titihazan Cezar Cezar2009 IP ascuns
Problemă Maxd Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 8 iul. 2025 20:27:44 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:24:9: error: 'uint32_t' was not declared in this scope 24 | vector <uint32_t> nrp; | ^~~~~~~~ main.cpp:18:1: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>' 17 | #include <climits> +++ |+#include <cstdint> 18 | //#include <iomanip> main.cpp:24:17: error: template argument 1 is invalid 24 | vector <uint32_t> nrp; | ^ main.cpp:24:17: error: template argument 2 is invalid main.cpp: In function 'void ciur()': main.cpp:27:5: error: 'uint32_t' was not declared in this scope 27 | uint32_t i,j; | ^~~~~~~~ main.cpp:27:5: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>' main.cpp:31:10: error: 'i' was not declared in this scope 31 | for (i = 2; i * i <= 44750; i++) | ^ main.cpp:35:17: error: request for member 'push_back' in 'nrp', which is of non-class type 'int' 35 | nrp.push_back(i); | ^~~~~~~~~ main.cpp:36:18: error: 'j' was not declared in this scope 36 | for (j = i * i; j <= 44750; j = j + i) | ^ main.cpp: In function 'int NumarulDivizorilor(int)': main.cpp:45:5: error: 'uint32_t' was not declared in this scope 45 | uint32_t p, rez = 1; | ^~~~~~~~ main.cpp:45:5: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>' main.cpp:47:19: error: 'begin' was not declared in this scope; did you mean 'std::begin'? 47 | for (auto f : nrp) | ^~~ | std::begin In file included from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/string:53, from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/locale_classes.h:40, from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/ios_base.h:41, from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/ios:44, from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/ostream:40, from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/iostream:41, from main.cpp:6: /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/range_access.h:114:37: note: 'std::begin' declared here 114 | template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept; | ^~~~~ main.cpp:47:19: error: 'end' was not declared in this scope; did you mean 'std::end'? 47 | for (auto f : nrp) | ^~~ | std::end /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/range_access.h:116:37: note: 'std::end' declared here 116 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;