Pagini recente » Borderou de evaluare (job #1066037) | Borderou de evaluare (job #1219144) | Borderou de evaluare (job #1814598) | Borderou de evaluare (job #1015668) | Borderou de evaluare (job #2877380)
Borderou de evaluare (job #2877380)
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 |
| 1 | 2ms | 184kb | OK | 10 |
| 2 | 2ms | 184kb | OK | 10 |
| 3 | 2ms | 184kb | Incorect | 0 |
| 4 | 2ms | 184kb | Incorect | 0 |
| 5 | 2ms | 184kb | OK | 10 |
| 6 | 2ms | 184kb | OK | 10 |
| 7 | 2ms | 184kb | OK | 10 |
| 8 | 2ms | 184kb | OK | 10 |
| 9 | 2ms | 184kb | OK | 10 |
| 10 | 2ms | 184kb | OK | 10 |
| Punctaj total | 80 |