Borderou de evaluare (job #1661910)

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

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/ccuJjU0W.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
10ms260kbOK10
20ms264kbOK10
30ms264kbOK10
40ms264kbOK10
50ms268kbOK10
60ms268kbOK10
70ms268kbOK10
80ms268kbOK10
90ms268kbOK10
100ms260kbOK10
Punctaj total100

Ceva nu functioneaza?