Borderou de evaluare (job #1833369)

Utilizator ipus1Stefan Enescu ipus1 Data 22 decembrie 2016 10:46:17
Problema Bool Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:77:7: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(vec[i]!=' ') ^ user.cpp:70:9: warning: unused variable ‘j’ [-Wunused-variable] int m,i,j,k; ^ user.cpp:68:31: 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:69:32: 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:72:10: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(vec); ^ user.cpp:73:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ",&m); ^ user.cpp:113:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] {scanf("%c",&a); ^ user.cpp: In function ‘bool fact()’: user.cpp:63:17: warning: ‘rez’ may be used uninitialized in this function [-Wmaybe-uninitialized] rez=(rez&exp()); ^ user.cpp: In function ‘bool exp()’: user.cpp:24:17: warning: ‘rez’ may be used uninitialized in this function [-Wmaybe-uninitialized] rez=(rez|term()); ^ /tmp/ccubOqY8.o: In function `main': user.cpp:(.text.startup+0x5b): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbOK10
20ms264kbIncorect0
30ms268kbIncorect0
40ms264kbIncorect0
50ms264kbOK10
60ms264kbOK10
70ms268kbIncorect0
80ms268kbIncorect0
90ms268kbOK10
100ms268kbOK10
Punctaj total50

Ceva nu functioneaza?