Borderou de evaluare (job #1586311)

Utilizator oldatlantianSerban Cercelescu oldatlantian Data 31 ianuarie 2016 23:55:21
Problema Bool Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘bool eval()’: user.cpp:36:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(ops.top()!='(' && pr[ops.top()]>=pr[op]){ ^ user.cpp:36:57: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(ops.top()!='(' && pr[ops.top()]>=pr[op]){ ^ user.cpp:55:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(ops.top()!='(' && pr[ops.top()]>=pr[op]){ ^ user.cpp:55:57: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(ops.top()!='(' && pr[ops.top()]>=pr[op]){ ^ user.cpp: In function ‘int main()’: user.cpp:79:33: 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:80:35: 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:88:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str+1); ^ user.cpp:89:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(line); sscanf(line,"%d",&n); ^ user.cpp:90:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(line); ^ /tmp/cc3PW1rG.o: In function `main': user.cpp:(.text.startup+0x90): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms308kbOK10
20ms308kbOK10
30ms312kbOK10
40ms312kbOK10
50ms308kbOK10
60ms308kbOK10
70ms308kbOK10
80ms308kbOK10
90ms308kbOK10
100ms312kbOK10
Punctaj total100

Ceva nu functioneaza?