Borderou de evaluare (job #1654387)

Utilizator Theodor1000Cristea Theodor Stefan Theodor1000 Data 16 martie 2016 23:43:55
Problema Teatru Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:22:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (!ap[st[i]]) ++nr; ^ user.cpp:23:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] ++ap[st[i]]; ^ user.cpp:27:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] --ap[st[a]]; ^ user.cpp:28:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (!ap[st[a++]]) --nr; ^ user.cpp:12:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("teatru.in", "r", stdin); ^ user.cpp:13:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("teatru.out", "w", stdout); ^ user.cpp:16:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d\n", &n, &c); ^ user.cpp:18:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (st); ^ user.cpp:19:32: warning: ‘ind’ may be used uninitialized in this function [-Wmaybe-uninitialized] int a = 0, nr = 0, ma = 0, ind; ^ /tmp/ccb9h2Fe.o: In function `main': user.cpp:(.text.startup+0x72): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbOK10
20ms280kbOK10
30ms336kbOK10
40ms328kbOK10
50ms328kbOK10
60ms296kbOK10
74ms316kbOK10
80ms308kbOK10
94ms324kbOK10
104ms328kbOK10
Punctaj total100

Ceva nu functioneaza?