Borderou de evaluare (job #944869)
Utilizator | Data | 29 aprilie 2013 22:03:53 | |
---|---|---|---|
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 ‘int main()’:
user.cpp:20:39: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(a[i][k] && a[i][j] && (a[i][j] > a[i][k] + a[k][j]) || !a[i][j]) && i != j)
^
user.cpp:20:93: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(a[i][k] && a[i][j] && (a[i][j] > a[i][k] + a[k][j]) || !a[i][j]) && i != j)
^
user.cpp:20:94: error: expected ‘;’ before ‘)’ token
if(a[i][k] && a[i][j] && (a[i][j] > a[i][k] + a[k][j]) || !a[i][j]) && i != j)
^
user.cpp:20:90: warning: statement has no effect [-Wunused-value]
if(a[i][k] && a[i][j] && (a[i][j] > a[i][k] + a[k][j]) || !a[i][j]) && i != j)
^
user.cpp:20:88: error: label ‘i’ used but not defined
if(a[i][k] && a[i][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 !