Borderou de evaluare (job #2845011)
Utilizator | Data | 6 februarie 2022 23:16:18 | |
---|---|---|---|
Problema | Trie | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In constructor 'trie::trie()':
main.cpp:14:3: error: 'memset' was not declared in this scope
14 | memset(fii, NULL, sizeof(fii));
| ^~~~~~
main.cpp:2:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
1 | #include <fstream>
+++ |+#include <cstring>
2 | #include <string>
main.cpp: In function 'void ad(trie*, int)':
main.cpp:20:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | if (pos == str.size() - 1) {
| ~~~~^~~~~~~~~~~~~~~~~
main.cpp:28:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | if (pos < str.size() && str[pos] >='a' && str[pos] <= 'z') {
| ~~~~^~~~~~~~~~~~
main.cpp:34:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | if ((pos < str.size() - 1)) {
| ~~~~^~~~~~~~~~~~~~~~
main.cpp: In function 'bool del(trie*, int)':
main.cpp:40:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | if (pos <= str.size() - 1 && str[pos] >= 'a' && str[pos] <= 'z') {
| ~~~~^~~~~~~~~~~~~~~~~
main.cpp:46:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | if (pos == str.size()) {
| ~~~~^~~~~~~~~~~~~
main.cpp: In function 'void fi(trie*, int)':
main.cpp:56:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | if (pos == str.size()) {
| ~~~~^~~~~~~~~~~~~
main.cpp:60:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | if (pos < str.size() && str[pos] >= 'a' && str[pos] <= 'z') {
| ~~~~^~~~~~~~~~~~
main.cpp: In function 'void pre(trie*, int)':
main.cpp:72:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | if (pos < str.size() && str[pos] >= 'a' && str[pos] <= 'z') {
| ~~~~^~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !