Borderou de evaluare (job #2458482)
Utilizator | Data | 20 septembrie 2019 18:42:18 | |
---|---|---|---|
Problema | Floyd-Warshall/Roy-Floyd | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void royfloyd()':
main.cpp:9:17: error: 'n' was not declared in this scope
for (int k=1;k<=n;k++)
^
main.cpp:12:17: error: 'a' was not declared in this scope
if (a[i][k] && a[k][j] && (a[i][j]>a[i][k]+a[k][j] || !a[i][j]) && i!=j) a[i][j]=a[i][k]+a[k][j];
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !