Pagini recente »
Borderou de evaluare (job #672127)
|
Borderou de evaluare (job #366226)
|
Borderou de evaluare (job #108284)
|
Borderou de evaluare (job #18620)
|
Borderou de evaluare (job #595363)
Borderou de evaluare (job #595363)
Raport evaluator
Compilare:
main.cpp: In function 'void fil(int, int, int&)':
main.cpp:16:30: warning: array subscript has type 'char' [-Wchar-subscripts]
16 | if(i-p[s[i-1]]==x) {
| ^
main.cpp:17:39: warning: array subscript has type 'char' [-Wchar-subscripts]
17 | fil(i+p[s[i-1]]+1,y,++c);
| ^
main.cpp: In function 'int main()':
main.cpp:25:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
25 | for(int i=0; i<s.size(); i++)
| ~^~~~~~~~~
main.cpp:26:23: warning: array subscript has type 'char' [-Wchar-subscripts]
26 | f[s[i]]++;
| ^
main.cpp:29:25: warning: array subscript has type 'char' [-Wchar-subscripts]
29 | while(f[c]==0)
| ^
main.cpp:34:30: warning: array subscript has type 'char' [-Wchar-subscripts]
34 | nr=f[c];
| ^
main.cpp:36:19: warning: array subscript has type 'char' [-Wchar-subscripts]
36 | p[c]=put;
| ^
main.cpp:41:21: warning: array subscript has type 'char' [-Wchar-subscripts]
41 | fil(1+p[s[0]],n,t);
| ^
main.cpp:39:19: warning: 'nr' may be used uninitialized in this function [-Wmaybe-uninitialized]
39 | cout<<nr<<'\n';
| ^~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
262 kb
|
Incorect
|
0
|
2
|
1 ms
|
262 kb
|
Incorect
|
0
|
3
|
1 ms
|
262 kb
|
Incorect
|
0
|
4
|
1 ms
|
262 kb
|
Incorect
|
0
|
5
|
1 ms
|
262 kb
|
Incorect
|
0
|
6
|
1 ms
|
262 kb
|
Incorect
|
0
|
7
|
1 ms
|
262 kb
|
Incorect
|
0
|
8
|
1 ms
|
262 kb
|
Incorect
|
0
|
9
|
1 ms
|
389 kb
|
Incorect
|
0
|
10
|
1 ms
|
262 kb
|
Incorect
|
0
|
Punctaj total
|
0
|