Pagini recente » Borderou de evaluare (job #746452) | Borderou de evaluare (job #2208466) | Borderou de evaluare (job #1139977) | Borderou de evaluare (job #1861007) | Borderou de evaluare (job #2556472)
Borderou de evaluare (job #2556472)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:135:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(v[x][y-1] != -1 && (val[v[x][y-1]] != val[v[x][y+1]]) || (v[x][y-1] != v[x][y+1]))
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:140:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(v[x+1][y] != -1 && (val[v[x+1][y]] != val[v[x][y+1]] && val[v[x+1][y]] != val[v[x][y-1]]) || (v[x+1][y] != v[x][y+1] && v[x+1][y]!=v[x][y-1]))
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:145:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(v[x-1][y] != -1 && (val[v[x-1][y]] != val[v[x][y+1]] && val[v[x-1][y]] != val[v[x][y-1]] && val[v[x-1][y]] != val[v[x+1][y]]) || (v[x-1][y] != v[x][y+1] && v[x-1][y] != v[x][y-1] && v[x-1][y] != v[x+1][y]))
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:160:27: warning: 'ymax' may be used uninitialized in this function [-Wmaybe-uninitialized]
out<<xmax<<" "<<ymax<<" "<<smax<<endl;
^~~
main.cpp:160:16: warning: 'xmax' may be used uninitialized in this function [-Wmaybe-uninitialized]
out<<xmax<<" "<<ymax<<" "<<smax<<endl;
^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Incorect | 0 |
2 | 3ms | 131kb | Incorect | 0 |
3 | 2ms | 131kb | Incorect | 0 |
4 | 2ms | 131kb | Incorect | 0 |
5 | 2ms | 131kb | Incorect | 0 |
6 | 2ms | 131kb | Incorect | 0 |
7 | 2ms | 131kb | Incorect | 0 |
8 | 2ms | 131kb | Incorect | 0 |
9 | 2ms | 131kb | Incorect | 0 |
10 | 2ms | 131kb | Incorect | 0 |
Punctaj total | 0 |