Borderou de evaluare (job #1310799)

Utilizator BeilandArnoldArnold Beiland BeilandArnold Data 7 ianuarie 2015 11:10:18
Problema Logic Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

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
10ms380kbKilled by signal 11(SIGSEGV).0
20ms388kbKilled by signal 11(SIGSEGV).0
30ms376kbKilled by signal 11(SIGSEGV).0
40ms380kbKilled by signal 11(SIGSEGV).0
50ms384kbKilled by signal 11(SIGSEGV).0
60ms384kbKilled by signal 11(SIGSEGV).0
70ms372kbKilled by signal 11(SIGSEGV).0
80ms376kbKilled by signal 11(SIGSEGV).0
90ms376kbKilled by signal 11(SIGSEGV).0
100ms384kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?