Pagini recente » Borderou de evaluare (job #2110569) | Borderou de evaluare (job #2496644) | Borderou de evaluare (job #3255658) | Borderou de evaluare (job #2565529) | Borderou de evaluare (job #3261230)
Borderou de evaluare (job #3261230)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:34:19: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | for(int i=0; i<s.size(); i++)
| ~^~~~~~~~~
main.cpp:38:21: warning: array subscript has type 'char' [-Wchar-subscripts]
38 | if(mx>f[s[i]])
| ^
main.cpp:39:22: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | mx=f[s[i]];
| ^
main.cpp:53:19: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | for(int i=0; i<s.size(); i++)
| ~^~~~~~~~~
main.cpp:59:22: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
59 | if(s.size()-1<i+m[s[i]])
main.cpp:31:12: warning: unused variable 'k' [-Wunused-variable]
31 | int n, k, a, cnt=0, mx=0, l=0;
| ^
main.cpp:52:13: warning: 'ch' may be used uninitialized [-Wmaybe-uninitialized]
52 | cout<<f[ch-'a']<<'\n';
| ^~
main.cpp:30:10: note: 'ch' was declared here
30 | char ch;
| ^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | OK | 10 |
2 | 0ms | 303kb | OK | 10 |
3 | 0ms | 303kb | Incorect | 0 |
4 | 0ms | 303kb | Incorect | 0 |
5 | 0ms | 303kb | Incorect | 0 |
6 | 0ms | 303kb | Incorect | 0 |
7 | 0ms | 303kb | Incorect | 0 |
8 | 1ms | 557kb | Incorect | 0 |
9 | 1ms | 561kb | Incorect | 0 |
10 | 1ms | 557kb | Incorect | 0 |
Punctaj total | 20 |