Borderou de evaluare (job #1661898)

Utilizator Theodor1000Cristea Theodor Stefan Theodor1000 Data 24 martie 2016 11:49:38
Problema Cod2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:26:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] ++ap[st[i]]; ^ user.cpp:28:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (ap[st[i]] == 1) ++clg; ^ user.cpp:29:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] else if (ap[st[i]] == 2) ++nr; ^ user.cpp:14:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("cod2.in", "r", stdin); ^ user.cpp:15:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("cod2.out", "w", stdout); ^ user.cpp:18:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d\n", &n); ^ user.cpp:20:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (st); ^ /tmp/ccF84VKg.o: In function `main': user.cpp:(.text.startup+0x6f): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbIncorect0
20ms268kbOK10
30ms268kbIncorect0
40ms264kbIncorect0
50ms264kbIncorect0
60ms268kbIncorect0
70ms268kbIncorect0
80ms268kbIncorect0
90ms264kbIncorect0
100ms268kbIncorect0
Punctaj total10

Ceva nu functioneaza?