Borderou de evaluare (job #2877380)

Utilizator ezluciPirtac Eduard ezluci Data 24 martie 2022 18:09:07
Problema Bool Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp: In function 'bool termen()': main.cpp:24:18: warning: '~' on an expression of type 'bool' [-Wbool-operation] 24 | negatie = ~negatie; | ^~~~~~~ main.cpp:24:18: note: did you mean to use logical not ('!')? main.cpp:46:15: warning: '~' on an expression of type 'bool' [-Wbool-operation] 46 | return ~ans; | ^~~ main.cpp:46:15: note: did you mean to use logical not ('!')? main.cpp: In function 'void replace(std::string&, std::string&, std::string&)': main.cpp:89:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 89 | for (i = 0; i <= s.size() - what.size(); ++i) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:92:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 92 | for (j = 0; j < what.size(); ++j) | ~~^~~~~~~~~~~~~ main.cpp: In function 'bool termen()': main.cpp:48:14: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized] 48 | return ans; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbOK10
22ms184kbOK10
32ms184kbIncorect0
42ms184kbIncorect0
52ms184kbOK10
62ms184kbOK10
72ms184kbOK10
82ms184kbOK10
92ms184kbOK10
102ms184kbOK10
Punctaj total80

Ceva nu functioneaza?