Borderou de evaluare (job #2830712)
Utilizator | Data | 10 ianuarie 2022 10:32:29 | |
---|---|---|---|
Problema | Roy-Floyd | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:36:105: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
36 | if ((dist[i][j] > dist[k][j] + dist[i][k] || strazi[i][j] < strazi[k][j] + strazi[i][k] && dist[i][j] == dist[k][j] + dist[i][k])&& drum[k][j]!=0 && drum[i][k]!=0 && i!=j)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:36:150: error: 'drum' was not declared in this scope; did you mean 'drem'?
36 | if ((dist[i][j] > dist[k][j] + dist[i][k] || strazi[i][j] < strazi[k][j] + strazi[i][k] && dist[i][j] == dist[k][j] + dist[i][k])&& drum[k][j]!=0 && drum[i][k]!=0 && i!=j)
| ^~~~
| drem
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !