Pagini recente » Borderou de evaluare (job #330518) | Borderou de evaluare (job #980031) | Borderou de evaluare (job #2408291) | Borderou de evaluare (job #1926545) | Borderou de evaluare (job #1807635)
Borderou de evaluare (job #1807635)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:13:19: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[50005]’ [-Wformat=]
scanf("%s",&s1);
^
user.cpp:21:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nr[i]=f[s1[i]]+1;
^
user.cpp:22:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
f[s1[i]]++;
^
user.cpp:26:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[s2[i]]++;
^
user.cpp:27:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
m[s2[i]][v[s2[i]]]=i;
^
user.cpp:27:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
m[s2[i]][v[s2[i]]]=i;
^
user.cpp:31:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
perm[i]=m[s1[i]][nr[i]];
^
user.cpp:35:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(v[s2[i]]!=f[s2[i]])
^
user.cpp:35:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(v[s2[i]]!=f[s2[i]])
^
user.cpp:11: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:12: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:13:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&s1);
^
user.cpp:14:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n");
^
user.cpp:16:24: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(s2,1,l,stdin);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 452kb | OK | 10 |
| 2 | 0ms | 436kb | OK | 10 |
| 3 | 0ms | 504kb | OK | 10 |
| 4 | 0ms | 608kb | OK | 10 |
| 5 | Depăşit | 1104kb | Time limit exceeded. | 0 |
| 6 | Depăşit | 1316kb | Time limit exceeded. | 0 |
| 7 | Depăşit | 1332kb | Time limit exceeded. | 0 |
| 8 | Depăşit | 1332kb | Time limit exceeded. | 0 |
| 9 | Depăşit | 1324kb | Time limit exceeded. | 0 |
| 10 | Depăşit | 1308kb | Time limit exceeded. | 0 |
| Punctaj total | 40 |