Pagini recente » Borderou de evaluare (job #3354324) | Borderou de evaluare (job #3324983) | Borderou de evaluare (job #3334903) | Borderou de evaluare (job #3309290) | Borderou de evaluare (job #3346034)
Borderou de evaluare (job #3346034)
Raport evaluator
Compilare:
main.cpp: In function 'int get_cost(const std::string&, const std::string&)':
main.cpp:24:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(int i=1;i<s.length();i++){
| ~^~~~~~~~~~~
main.cpp: In function 'bool is_inside(const std::string&, const std::string&)':
main.cpp:40:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for(int i=1;i<s.length();i++){
| ~^~~~~~~~~~~
main.cpp:48:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | for(int i=a.length();i<s.length();i++){
| ~^~~~~~~~~~~
main.cpp:49:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | if(pi[i] == a.length()) return 1;
| ~~~~~~^~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:117:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
117 | for(int idx = 1;idx<indici.size();idx++){
| ~~~^~~~~~~~~~~~~~
main.cpp:122:44: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
122 | for(int x = s[i].length() - cost; x< s[i].length(); x++){
| ~^~~~~~~~~~~~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 303kb | OK! | 10 |
| 2 | 0ms | 303kb | OK! | 10 |
| 3 | 0ms | 303kb | OK! | 10 |
| 4 | 0ms | 303kb | OK! | 10 |
| 5 | 1ms | 819kb | OK! | 10 |
| 6 | 4ms | 557kb | OK! | 10 |
| 7 | 43ms | 1343kb | OK! | 10 |
| 8 | 103ms | 17477kb | OK! | 10 |
| 9 | 64ms | 3563kb | OK! | 10 |
| 10 | 178ms | 33280kb | OK! | 10 |
| Punctaj total | 100 |