Pagini recente » Borderou de evaluare (job #1018644) | Borderou de evaluare (job #406267) | Borderou de evaluare (job #303484) | Borderou de evaluare (job #1786631) | Borderou de evaluare (job #3352826)
Borderou de evaluare (job #3352826)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:102:99: 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 | Lungime minima gresita | 4 |
| 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 | 94 |