Borderou de evaluare (job #1919992)

Utilizator MiricaMateiMirica Matei MiricaMatei Data 9 martie 2017 21:54:41
Problema Logic Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int poloneza(int, char*, int*)’: user.cpp:41:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] polo[++top1] = val[s[i]]; ^ user.cpp: In function ‘int main()’: user.cpp:71:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] f1[s1[j]] = 1; ^ user.cpp:78:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] f2[s2[j]] = 1; ^ user.cpp:94:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] aux[v1[j + 1]] = 1; ^ user.cpp:96:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] aux[v1[j + 1]] = 0; ^ user.cpp:97:11: warning: unused variable ‘x1’ [-Wunused-variable] int x1 = poloneza(m1, s1, aux); ^ user.cpp:98:11: warning: unused variable ‘x2’ [-Wunused-variable] int x2 = poloneza(m2, s2, aux); ^ user.cpp:60:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("logic.in", "r", stdin); ^ user.cpp:61:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("logic.out", "w", stdout); ^ user.cpp:63:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &n); ^ user.cpp:65:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s1 + 1); ^ user.cpp:66:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s2 + 1); ^ /tmp/ccTbrQcb.o: In function `main': user.cpp:(.text.startup+0x7e): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbOK10
20ms252kbIncorect0
30ms256kbOK10
40ms248kbIncorect0
58ms252kbIncorect0
60ms252kbIncorect0
70ms248kbOK10
80ms256kbIncorect0
90ms252kbIncorect0
104ms252kbOK10
Punctaj total40

Ceva nu functioneaza?