Pagini recente » Borderou de evaluare (job #1179957) | Borderou de evaluare (job #742940) | Borderou de evaluare (job #2214998) | Borderou de evaluare (job #862826) | Borderou de evaluare (job #1807598)
Borderou de evaluare (job #1807598)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int)’:
user.cpp:10:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=pos;i<=strlen(s1);i+=zeros(i))
^
user.cpp: In function ‘int main()’:
user.cpp:26:19: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[50005]’ [-Wformat=]
scanf("%s",&s1);
^
user.cpp:28:19: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[50005]’ [-Wformat=]
scanf("%s",&s2);
^
user.cpp:29:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(s1);i++)
^
user.cpp:31:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nr[i]=f[s1[i]]+1;
^
user.cpp:32:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
f[s1[i]]++;
^
user.cpp:35:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(s2);i++)
^
user.cpp:37:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
m[s2[i]][++v[s2[i]]]=i;
^
user.cpp:37:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
m[s2[i]][++v[s2[i]]]=i;
^
user.cpp:39:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(s1);i++)
^
user.cpp:41:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
perm[i]=m[s1[i]][nr[i]];
^
user.cpp:43:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(s1);i++)
^
user.cpp:45:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(v[s2[i]]!=f[s2[i]])
^
user.cpp:45:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(v[s2[i]]!=f[s2[i]])
^
user.cpp:52:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<strlen(s1);i++)
^
user.cpp:24:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("swap.in","r",stdin);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 444kb | OK | 10 |
2 | 0ms | 432kb | OK | 10 |
3 | 12ms | 476kb | Incorect | 0 |
4 | 12ms | 564kb | Incorect | 0 |
5 | Depăşit | 476kb | Time limit exceeded. | 0 |
6 | Depăşit | 504kb | Time limit exceeded. | 0 |
7 | Depăşit | 500kb | Time limit exceeded. | 0 |
8 | Depăşit | 500kb | Time limit exceeded. | 0 |
9 | Depăşit | 496kb | Time limit exceeded. | 0 |
10 | Depăşit | 504kb | Time limit exceeded. | 0 |
Punctaj total | 20 |