Pagini recente » Borderou de evaluare (job #1529653) | Borderou de evaluare (job #1240718) | Borderou de evaluare (job #1149217) | Borderou de evaluare (job #1898968) | Borderou de evaluare (job #1807618)
Borderou de evaluare (job #1807618)
Raport evaluator
Compilare:
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:32:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nr[i]=f[s1[i]]+1;
^
user.cpp:33:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
f[s1[i]]++;
^
user.cpp:37:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[s2[i]]++;
^
user.cpp:38:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
m[s2[i]][v[s2[i]]]=i;
^
user.cpp:38:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
m[s2[i]][v[s2[i]]]=i;
^
user.cpp:42:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
perm[i]=m[s1[i]][nr[i]];
^
user.cpp:46:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(v[s2[i]]!=f[s2[i]])
^
user.cpp:46:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(v[s2[i]]!=f[s2[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);
^
user.cpp:25:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("swap.out","w",stdout);
^
user.cpp:26:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&s1);
^
user.cpp:27:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n");
^
user.cpp:28:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&s2);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 448kb | OK | 10 |
2 | 0ms | 432kb | OK | 10 |
3 | 0ms | 500kb | OK | 10 |
4 | 0ms | 596kb | OK | 10 |
5 | Depăşit | 968kb | Time limit exceeded. | 0 |
6 | 4ms | 1332kb | OK | 10 |
7 | 4ms | 1348kb | OK | 10 |
8 | Depăşit | 1356kb | Time limit exceeded. | 0 |
9 | 4ms | 1344kb | OK | 10 |
10 | 28ms | 1412kb | OK | 10 |
Punctaj total | 80 |