Pagini recente » Borderou de evaluare (job #2146697) | Borderou de evaluare (job #368153) | Borderou de evaluare (job #368149) | Borderou de evaluare (job #2186694) | Borderou de evaluare (job #3240608)
Borderou de evaluare (job #3240608)
Raport evaluator
Compilare:
main.cpp: In function 'int variabila(const std::string&, int&)':
main.cpp:68:29: warning: array subscript has type 'char' [-Wchar-subscripts]
68 | return fr[s[p-1]];
| ^
main.cpp: In function 'int main()':
main.cpp:75:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
75 | for(int i=0; i<=x.size(); i++)
| ~^~~~~~~~~~
main.cpp:80:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
80 | for(int i=0; i<val.size(); i++)
| ~^~~~~~~~~~~
main.cpp:82:21: warning: array subscript has type 'char' [-Wchar-subscripts]
82 | if(fr[val[i]] == 0)
| ^
main.cpp:83:22: warning: array subscript has type 'char' [-Wchar-subscripts]
83 | fr[val[i]] = 1;
| ^
main.cpp:85:22: warning: array subscript has type 'char' [-Wchar-subscripts]
85 | fr[val[i]] = 0;
| ^
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 | OK | 10 |
6 | 0ms | 303kb | OK | 10 |
7 | 0ms | 303kb | Incorect | 0 |
8 | 0ms | 303kb | Incorect | 0 |
9 | 0ms | 303kb | Incorect | 0 |
10 | 0ms | 303kb | OK | 10 |
Punctaj total | 50 |