Borderou de evaluare (job #1816372)

Utilizator mirunazMiruna Zavelca mirunaz Data 26 noiembrie 2016 13:32:35
Problema Bool Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int valoare()’: user.cpp:11:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] return v[s[p]]; ^ user.cpp: In function ‘int main()’: user.cpp:97:12: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[c] ++; ^ user.cpp:98:12: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[c] %= 2; ^ user.cpp:91:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("bool.in", "r", stdin); ^ user.cpp:92:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("bool.out", "w", stdout); ^ user.cpp:93:13: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (s); ^ user.cpp:94:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d ", &n); ^ user.cpp:96:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%c", &c); ^ /tmp/ccA0mGQM.o: In function `main': user.cpp:(.text.startup+0x59): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbIncorect0
20ms256kbIncorect0
30ms260kbIncorect0
40ms260kbIncorect0
50ms264kbOK10
60ms260kbOK10
70ms264kbOK10
80ms260kbOK10
90ms260kbOK10
100ms260kbOK10
Punctaj total60

Ceva nu functioneaza?