Pagini recente » Borderou de evaluare (job #1503184) | Borderou de evaluare (job #3030955) | Borderou de evaluare (job #3037395) | Borderou de evaluare (job #2987925) | Borderou de evaluare (job #2908003)
Borderou de evaluare (job #2908003)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:64:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
64 | for(int j=0;j<a.size();j++)
| ~^~~~~~~~~
main.cpp:66:47: warning: array subscript has type 'char' [-Wchar-subscripts]
66 | if(a[j]>='a' && a[j]<='z' && f[a[j]]==0)
| ^
main.cpp:68:18: warning: array subscript has type 'char' [-Wchar-subscripts]
68 | f[a[j]]++;
| ^
main.cpp:70:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
70 | for(int j=0;j<b.size();j++)
| ~^~~~~~~~~
main.cpp:72:47: warning: array subscript has type 'char' [-Wchar-subscripts]
72 | if(b[j]>='a' && b[j]<='z' && f[b[j]]==0)
| ^
main.cpp:74:18: warning: array subscript has type 'char' [-Wchar-subscripts]
74 | f[b[j]]++;
| ^
main.cpp:79:18: warning: array subscript has type 'char' [-Wchar-subscripts]
79 | if(f[ch]>0)
| ^~
main.cpp:80:21: warning: array subscript has type 'char' [-Wchar-subscripts]
80 | val[ch]=++counter;
| ^~
main.cpp:85:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
85 | for(int i=0;i<a.size();i++)
| ~^~~~~~~~~
main.cpp:88:47: warning: array subscript has type 'char' [-Wchar-subscripts]
88 | c1+=(char)(j/(1<<(val[a[i]]-1))+'0');
| ^
main.cpp:92:26: 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(int i=0;i<b.size();i++)
| ~^~~~~~~~~
main.cpp:95:47: warning: array subscript has type 'char' [-Wchar-subscripts]
95 | c2+=(char)(j/(1<<(val[b[i]]-1))+'0');
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 1ms | 184kb | OK | 10 |
2 | 1ms | 184kb | Incorect | 0 |
3 | 1ms | 184kb | Incorect | 0 |
4 | 2ms | 184kb | Incorect | 0 |
5 | 1ms | 184kb | Incorect | 0 |
6 | 1ms | 184kb | Incorect | 0 |
7 | 1ms | 184kb | Incorect | 0 |
8 | 1ms | 184kb | Incorect | 0 |
9 | 1ms | 184kb | Incorect | 0 |
10 | 3ms | 319kb | Incorect | 0 |
Punctaj total | 10 |