Borderou de evaluare (job #1362864)

Utilizator depevladVlad Dumitru-Popescu depevlad Data 26 februarie 2015 16:08:53
Problema Bool Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘bool eval()’: user.cpp:62:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(value[A] == 1) ^ user.cpp:64:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(value[A] == 0) ^ user.cpp:72:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] RES = value[A] && value[B]; ^ user.cpp:72:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] RES = value[A] && value[B]; ^ user.cpp:79:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] RES = value[A] || value[B]; ^ user.cpp:79:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] RES = value[A] || value[B]; ^ user.cpp: In function ‘int main()’: user.cpp:148:67: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(!op.empty() && op.top() != '(' && prior[op.top()] >= prior[oper]) { ^ user.cpp:148:82: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(!op.empty() && op.top() != '(' && prior[op.top()] >= prior[oper]) { ^ user.cpp:164:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] value[VAR] = 1 - value[VAR]; ^ user.cpp:164:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] value[VAR] = 1 - value[VAR]; ^ user.cpp: In function ‘bool eval()’: user.cpp:93:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:98: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:99: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:107:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(e); ^ user.cpp:161:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:163:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbOK10
20ms276kbOK10
30ms276kbOK10
40ms280kbOK10
50ms280kbOK10
60ms280kbIncorect0
70ms284kbOK10
80ms284kbOK10
90ms280kbIncorect0
100ms280kbOK10
Punctaj total80

Ceva nu functioneaza?