Pagini recente » Borderou de evaluare (job #2434833) | Borderou de evaluare (job #1137207) | Borderou de evaluare (job #1657026) | Borderou de evaluare (job #374972) | Borderou de evaluare (job #2928736)
Borderou de evaluare (job #2928736)
Raport evaluator
Compilare:
main.cpp: In function 'int checkWinner(int)':
main.cpp:55:20: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
55 | if ( mat[0][0] == mat[1][1] == mat[2][2] && mat[0][0] != 0 ) {
| ~~~~~~~~~~^~~~~~~~~~~~
main.cpp:59:20: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
59 | if ( mat[0][2] == mat[1][1] == mat[2][0] && mat[0][2] != 0 ) {
| ~~~~~~~~~~^~~~~~~~~~~~
main.cpp: In function 'int compute_game(int, int)':
main.cpp:92:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
92 | for ( i = 0; i < answer_for_states.size(); i++ ) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: At global scope:
main.cpp:129:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
129 | char* answer[] = {"invalid", "draw", "win", "lose"};
| ^~~~~~~~~
main.cpp:129:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
129 | char* answer[] = {"invalid", "draw", "win", "lose"};
| ^~~~~~
main.cpp:129:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
129 | char* answer[] = {"invalid", "draw", "win", "lose"};
| ^~~~~
main.cpp:129:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
129 | char* answer[] = {"invalid", "draw", "win", "lose"};
| ^~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 42ms | 2179kb | Incorect | 0 |
Punctaj total | 0 |