Borderou de evaluare (job #1920025)

Utilizator MiricaMateiMirica Matei MiricaMatei Data 9 martie 2017 22:07:19
Problema Logic Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

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: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/ccK39mWk.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
10ms252kbOK10
20ms252kbOK10
30ms256kbOK10
40ms252kbIncorect0
54ms252kbOK10
60ms256kbIncorect0
70ms252kbOK10
80ms252kbIncorect0
90ms252kbIncorect0
100ms252kbOK10
Punctaj total60

Ceva nu functioneaza?