Borderou de evaluare (job #2928723)
Raport evaluator
Compilare:
main.cpp: In function 'int checkWinner(int)':
main.cpp:30:21: warning: unused variable 'elem_column' [-Wunused-variable]
30 | int elem_lines, elem_column;
| ^~~~~~~~~~~
main.cpp: In function 'int compute_game(int, int)':
main.cpp:85:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
85 | for ( i = 0; i < answer_for_states.size(); i++ ) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: At global scope:
main.cpp:121:19: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
121 | char* answer[] = {"invalid", "draw", "win", "lose"};
| ^~~~~~~~~
main.cpp:121:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
121 | char* answer[] = {"invalid", "draw", "win", "lose"};
| ^~~~~~
main.cpp:121:38: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
121 | char* answer[] = {"invalid", "draw", "win", "lose"};
| ^~~~~
main.cpp:121:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
121 | char* answer[] = {"invalid", "draw", "win", "lose"};
| ^~~~~~
main.cpp: In function 'int compute_game(int, int)':
main.cpp:67:17: warning: control reaches end of non-void function [-Wreturn-type]
67 | vector<int> answer_for_states;
| ^~~~~~~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 184kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |