Borderou de evaluare (job #1807598)

Utilizator ionanghelinaIonut Anghelina ionanghelina Data 16 noiembrie 2016 19:09:48
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:29:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<strlen(s1);i++) ^ user.cpp:31:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] nr[i]=f[s1[i]]+1; ^ user.cpp:32:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] f[s1[i]]++; ^ user.cpp:35:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<strlen(s2);i++) ^ user.cpp:37:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] m[s2[i]][++v[s2[i]]]=i; ^ user.cpp:37:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] m[s2[i]][++v[s2[i]]]=i; ^ user.cpp:39:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<strlen(s1);i++) ^ user.cpp:41:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] perm[i]=m[s1[i]][nr[i]]; ^ user.cpp:43:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<strlen(s1);i++) ^ user.cpp:45:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(v[s2[i]]!=f[s2[i]]) ^ user.cpp:45:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(v[s2[i]]!=f[s2[i]]) ^ user.cpp:52: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); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms444kbOK10
20ms432kbOK10
312ms476kbIncorect0
412ms564kbIncorect0
5Depăşit476kbTime limit exceeded.0
6Depăşit504kbTime limit exceeded.0
7Depăşit500kbTime limit exceeded.0
8Depăşit500kbTime limit exceeded.0
9Depăşit496kbTime limit exceeded.0
10Depăşit504kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?