Borderou de evaluare (job #1362800)

Utilizator depevladVlad Dumitru-Popescu depevlad Data 26 februarie 2015 15:35:01
Problema Bool Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘bool eval()’: user.cpp:62:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] op.top() = 1 - value[A]; ^ user.cpp:70:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] op.top() = (value[A] && value[B]); ^ user.cpp:70:52: warning: array subscript has type ‘char’ [-Wchar-subscripts] op.top() = (value[A] && value[B]); ^ user.cpp:72:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] op.top() = (value[A] || value[B]); ^ user.cpp:72:52: warning: array subscript has type ‘char’ [-Wchar-subscripts] op.top() = (value[A] || value[B]); ^ user.cpp: In function ‘int main()’: user.cpp:133:67: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(!op.empty() && op.top() != '(' && prior[op.top()] >= prior[oper]) { ^ user.cpp:133:82: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(!op.empty() && op.top() != '(' && prior[op.top()] >= prior[oper]) { ^ user.cpp:149:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] value[VAR] = 1 - value[VAR]; ^ user.cpp:149:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] value[VAR] = 1 - value[VAR]; ^ user.cpp:84:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(inFile, "r", stdin); ^ user.cpp:85:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(outFile, "w", stdout); ^ user.cpp:93:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(e); ^ user.cpp:146:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:148:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c", &VAR); ^ /tmp/ccPFDuaY.o: In function `main': user.cpp:(.text.startup+0x62): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbIncorect0
20ms280kbOK10
30ms276kbIncorect0
40ms272kbOK10
50ms272kbOK10
60ms280kbIncorect0
70ms272kbIncorect0
80ms280kbIncorect0
90ms276kbIncorect0
100ms280kbOK10
Punctaj total40

Ceva nu functioneaza?