Pagini recente » Borderou de evaluare (job #2668503) | Borderou de evaluare (job #163117) | Borderou de evaluare (job #1098321) | Borderou de evaluare (job #2128396) | Borderou de evaluare (job #1310799)
Borderou de evaluare (job #1310799)
Raport evaluator
Compilare:
user.cpp: In function ‘void shunting_yard(const string&, std::string&, std::vector<bool>&)’:
user.cpp:40:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(!op.empty()&&prec[from[fc]]<=prec[op.top()]){
^
user.cpp:40:36: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:40:52: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(!op.empty()&&prec[from[fc]]<=prec[op.top()]){
^
user.cpp:40:52: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp: In function ‘bool eval(const string&)’:
user.cpp:74:19: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
num.top() = x&&!num.top() || !x&&num.top();
^
user.cpp:83:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:117:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<(1<<nr);++i){
^
user.cpp:119:37: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses]
if(eval(rp1)!=eval(rp2)) i=1<<nr+1;
^
user.cpp:121:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i==(1<<nr)) fout<<"egale\n";
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 380kb | Killed by signal 11(SIGSEGV). | 0 |
2 | 0ms | 388kb | Killed by signal 11(SIGSEGV). | 0 |
3 | 0ms | 376kb | Killed by signal 11(SIGSEGV). | 0 |
4 | 0ms | 380kb | Killed by signal 11(SIGSEGV). | 0 |
5 | 0ms | 384kb | Killed by signal 11(SIGSEGV). | 0 |
6 | 0ms | 384kb | Killed by signal 11(SIGSEGV). | 0 |
7 | 0ms | 372kb | Killed by signal 11(SIGSEGV). | 0 |
8 | 0ms | 376kb | Killed by signal 11(SIGSEGV). | 0 |
9 | 0ms | 376kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 0ms | 384kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 0 |