Borderou de evaluare (job #2814846)
Utilizator | Data | 8 decembrie 2021 18:09:34 | |
---|---|---|---|
Problema | Diametrul unui arbore | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In static member function 'static bool Graf::potiConstruiGraf(std::vector<int>)':
main.cpp:253:26: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
253 | if (grade[0] > grade.size() - 1) return false;
main.cpp: In member function 'int Graf::diametru()':
main.cpp:370:9: error: 'memset' was not declared in this scope
370 | memset(m_diametruViz, 0, sizeof(m_diametruViz));
| ^~~~~~
main.cpp:11:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
10 | #include <climits>
+++ |+#include <cstring>
11 |
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !