Borderou de evaluare (job #1807607)

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

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
10ms444kbOK10
20ms428kbOK10
38ms476kbIncorect0
48ms568kbIncorect0
5Depăşit820kbTime limit exceeded.0
6Depăşit1080kbTime limit exceeded.0
7Depăşit1096kbTime limit exceeded.0
8Depăşit1096kbTime limit exceeded.0
9Depăşit1092kbTime limit exceeded.0
10Depăşit1168kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?