Pagini recente »
Borderou de evaluare (job #577408)
|
Borderou de evaluare (job #125676)
|
Borderou de evaluare (job #300970)
|
Borderou de evaluare (job #752527)
|
Borderou de evaluare (job #595360)
Borderou de evaluare (job #595360)
Raport evaluator
Compilare:
main.cpp: In function 'void fil(int, int, int&)':
main.cpp:11:30: warning: array subscript has type 'char' [-Wchar-subscripts]
11 | if(i-p[s[i-1]]>=x) {
| ^
main.cpp:12:39: warning: array subscript has type 'char' [-Wchar-subscripts]
12 | fil(i+p[s[i-1]]+1,y,++c);
| ^
main.cpp: In function 'int main()':
main.cpp:20:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
20 | for(int i=0; i<s.size(); i++)
| ~^~~~~~~~~
main.cpp:21:23: warning: array subscript has type 'char' [-Wchar-subscripts]
21 | f[s[i]]++;
| ^
main.cpp:24:25: warning: array subscript has type 'char' [-Wchar-subscripts]
24 | while(f[c]==0)
| ^
main.cpp:29:30: warning: array subscript has type 'char' [-Wchar-subscripts]
29 | nr=f[c];
| ^
main.cpp:31:19: warning: array subscript has type 'char' [-Wchar-subscripts]
31 | p[c]=put;
| ^
main.cpp:36:21: warning: array subscript has type 'char' [-Wchar-subscripts]
36 | fil(1+p[s[0]],n,t);
| ^
main.cpp:34:19: warning: 'nr' may be used uninitialized in this function [-Wmaybe-uninitialized]
34 | cout<<nr<<'\n';
| ^~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
262 kb
|
OK
|
10
|
2
|
1 ms
|
262 kb
|
OK
|
10
|
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
|
262 kb
|
Incorect
|
0
|
10
|
1 ms
|
393 kb
|
Incorect
|
0
|
Punctaj total
|
20
|