Borderou de evaluare (job #1830514)

Utilizator Tiberiu02Tiberiu Musat Tiberiu02 Data 16 decembrie 2016 20:06:10
Problema Zona Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In member function ‘void Table::set_score(int, int)’: user.cpp:111:19: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses] stats = stats ^ ( (long long)score( p ) << ( 2 | ( p << 4 ) ) ) | ( (long long)val << ( 2 | ( p << 4 ) ) ); ^ user.cpp: In member function ‘void Table::set_king(int, int)’: user.cpp:121:19: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses] stats = stats ^ ( stats & 1 << p ) | ( val << p ); ^ user.cpp: In member function ‘bool Table::isCheckMate() const’: user.cpp:240:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( i = 0; i < aux.size(); i ++ ) { ^ user.cpp:248:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ( i == aux.size() ) ^ user.cpp: In member function ‘bool Table::isCheck() const’: user.cpp:537:17: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] && ( y != 7 && slot( px, y + 1 ) == Table::Pawn * 2 + !to_move ^ user.cpp: In function ‘int negamax(int, Table&, int, int)’: user.cpp:618:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 0; i < aux.size(); i ++ ) { ^ user.cpp:649:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 0; i < opp_moves.size(); i ++ ) { ^ user.cpp:662:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 0; i < aux.size(); i ++ ) { ^ user.cpp:680:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 0; i < next_move.size(); i ++ ) { ^ user.cpp:684:77: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] alpha = max( alpha, -negamax( d - 1 - ( i * 4 >= next_move.size() ) - ( d > 2 && i * 2 >= next_move.size() ), m, -beta, -alpha ) ); ^ user.cpp:684:118: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] alpha = max( alpha, -negamax( d - 1 - ( i * 4 >= next_move.size() ) - ( d > 2 && i * 2 >= next_move.size() ), m, -beta, -alpha ) ); ^ user.cpp: In function ‘int main()’: user.cpp:729:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] t.push( conv[str[0]] * 2 + str[1] - '0', x, y ); ^ user.cpp:737:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 0; i < aux.size(); i ++ ) { ^ user.cpp:758:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 0; i < aux.size(); i ++ ) { ^ user.cpp: In member function ‘bool Table::isCheckMate() const’: user.cpp:250:1: warning: control reaches end of non-void function [-Wreturn-type]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms400kbKilled by signal 11(SIGSEGV).0
20ms408kbKilled by signal 11(SIGSEGV).0
30ms404kbKilled by signal 11(SIGSEGV).0
40ms404kbKilled by signal 11(SIGSEGV).0
50ms404kbKilled by signal 11(SIGSEGV).0
60ms404kbKilled by signal 11(SIGSEGV).0
70ms400kbKilled by signal 11(SIGSEGV).0
80ms400kbKilled by signal 11(SIGSEGV).0
90ms400kbKilled by signal 11(SIGSEGV).0
100ms404kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?