Borderou de evaluare (job #1807635)

Utilizator ionanghelinaIonut Anghelina ionanghelina Data 16 noiembrie 2016 19:38:13
Problema Swap Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

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
10ms452kbOK10
20ms436kbOK10
30ms504kbOK10
40ms608kbOK10
5Depăşit1104kbTime limit exceeded.0
6Depăşit1316kbTime limit exceeded.0
7Depăşit1332kbTime limit exceeded.0
8Depăşit1332kbTime limit exceeded.0
9Depăşit1324kbTime limit exceeded.0
10Depăşit1308kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?