Borderou de evaluare (job #1722737)

Utilizator Burbon13Burbon13 Burbon13 Data 28 iunie 2016 19:09:51
Problema Subsiruri2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:51:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] s1[ls1++] = s[p]; ^ user.cpp:53:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] s2[ls2++] = s[p]; /// 0 in s2 ^ user.cpp:60:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] s1[ls1++] = s[j]; ^ user.cpp:63:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(s1[ls2] == s[j]) ^ user.cpp:64:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] s2[ls2++] = s[j]; ^ user.cpp:66:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] s1[ls1++] = s[j]; ^ user.cpp:70:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(s2[ls1] == s[j]) ^ user.cpp:71:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] s1[ls1++] = s[j]; ^ user.cpp:73:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] s2[ls2++] = s[j]; ^ user.cpp:33:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("subsiruri2.in", "r", stdin); ^ user.cpp:34:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("subsiruri2.out", "w", stdout); ^ user.cpp:36:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:37:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", s); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms428kbIncorect0
20ms428kbIncorect0
30ms428kbIncorect0
40ms428kbIncorect0
58ms432kbIncorect0
620ms424kbIncorect0
736ms424kbIncorect0
8192ms428kbIncorect0
9164ms424kbIncorect0
10168ms432kbIncorect0
Punctaj total0

Ceva nu functioneaza?