Borderou de evaluare (job #2916752)
Utilizator | Data | 1 august 2022 13:02:51 | |
---|---|---|---|
Problema | Berarii2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int, char*, std::vector<int>*, std::vector<int>&)':
main.cpp:10:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for (int i = 0; i < v[nod].size(); i++)
| ~~^~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:47:5: error: 'memset' was not declared in this scope
47 | memset(vizite, 0, n + 1);
| ^~~~~~
main.cpp:5:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
4 | #include <algorithm>
+++ |+#include <cstring>
5 | using namespace std;
main.cpp:66:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | for (int i = 0; i < badnodes.size(); i++)
| ~~^~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !