Pagini recente » Borderou de evaluare (job #1760973) | Borderou de evaluare (job #2962396) | Borderou de evaluare (job #135210) | Borderou de evaluare (job #2052545) | Borderou de evaluare (job #3352827)
Borderou de evaluare (job #3352827)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:102:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
102 | if (mat[i][j] == '0' && (in_mat(i - 1, j) && mat[i - 1][j] == '1' || in_mat(i, j + 1) && mat[i][j + 1] == '1' || in_mat(i + 1, j) && mat[i + 1][j] == '1' || in_mat(i, j - 1) && mat[i][j - 1] == '1')) {
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp:102:143: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
102 | if (mat[i][j] == '0' && (in_mat(i - 1, j) && mat[i - 1][j] == '1' || in_mat(i, j + 1) && mat[i][j + 1] == '1' || in_mat(i + 1, j) && mat[i + 1][j] == '1' || in_mat(i, j - 1) && mat[i][j - 1] == '1')) {
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp:102:187: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
102 | if (mat[i][j] == '0' && (in_mat(i - 1, j) && mat[i - 1][j] == '1' || in_mat(i, j + 1) && mat[i][j + 1] == '1' || in_mat(i + 1, j) && mat[i + 1][j] == '1' || in_mat(i, j - 1) && mat[i][j - 1] == '1')) {
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 303kb | OK! | 10 |
| 2 | 0ms | 303kb | OK! | 10 |
| 3 | 0ms | 303kb | OK! | 10 |
| 4 | 0ms | 303kb | OK! | 10 |
| 5 | 0ms | 303kb | OK! | 10 |
| 6 | 0ms | 303kb | OK! | 10 |
| 7 | 0ms | 303kb | OK! | 10 |
| 8 | 0ms | 303kb | OK! | 10 |
| 9 | 1ms | 303kb | OK! | 10 |
| 10 | 0ms | 303kb | OK! | 10 |
| Punctaj total | 100 |