Borderou de evaluare (job #1729951)
| Utilizator | Data | 15 iulie 2016 22:11:24 | |
|---|---|---|---|
| Problema | Floyd-Warshall/Roy-Floyd | Status | done |
| Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void roy()’:
user.cpp:13:39: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(a[i][k] && a[k][j] && (a[i][j]>a[i][k]+a[k][j]) || !a[i][j]) && i!=j))
^
user.cpp:13:87: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(a[i][k] && a[k][j] && (a[i][j]>a[i][k]+a[k][j]) || !a[i][j]) && i!=j))
^
user.cpp:13:88: error: expected ‘;’ before ‘)’ token
if(a[i][k] && a[k][j] && (a[i][j]>a[i][k]+a[k][j]) || !a[i][j]) && i!=j))
^
user.cpp:13:85: warning: statement has no effect [-Wunused-value]
if(a[i][k] && a[k][j] && (a[i][j]>a[i][k]+a[k][j]) || !a[i][j]) && i!=j))
^
user.cpp:13:84: error: label ‘i’ used but not defined
if(a[i][k] && a[k][j] && (a[i][j]>a[i][k]+a[k][j]) || !a[i][j]) && i!=j))
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
