Borderou de evaluare (job #3158045)
Utilizator | Data | 17 octombrie 2023 17:10:44 | |
---|---|---|---|
Problema | Sub | Status | done |
Runda | HLO 2023 - Lot - Tema 0 | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void ins(str*, int, int)':
main.cpp:30:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
30 | if (poz == s.size())
| ~~~~^~~~~~~~~~~
main.cpp: In function 'void del(str*, int)':
main.cpp:48:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
48 | if (poz == s.size())
| ~~~~^~~~~~~~~~~
main.cpp: In function 'void solve(str*)':
main.cpp:69:27: error: ordered comparison of pointer with integer zero ('str*' and 'int')
69 | if (nod -> nxt[i] > 0)
| ~~~~~~~~~~~~~~^~~
main.cpp: In function 'int main()':
main.cpp:82:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
82 | for (int j = 0; j < s.size(); j++)
| ~~^~~~~~~~~~
main.cpp:92:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
92 | for (int j = 0; j < s.size(); j++)
| ~~^~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !