Pagini recente » Borderou de evaluare (job #25977) | Borderou de evaluare (job #1905269) | Borderou de evaluare (job #466463) | Borderou de evaluare (job #527926) | Borderou de evaluare (job #1807616)
Borderou de evaluare (job #1807616)
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: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:53: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);
^
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");
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 448kb | OK | 10 |
2 | 0ms | 428kb | OK | 10 |
3 | 8ms | 492kb | OK | 10 |
4 | 8ms | 592kb | OK | 10 |
5 | Depăşit | 844kb | Time limit exceeded. | 0 |
6 | Depăşit | 1200kb | Time limit exceeded. | 0 |
7 | Depăşit | 1244kb | Time limit exceeded. | 0 |
8 | Depăşit | 1140kb | Time limit exceeded. | 0 |
9 | Depăşit | 1256kb | Time limit exceeded. | 0 |
10 | Depăşit | 1208kb | Time limit exceeded. | 0 |
Punctaj total | 40 |