Borderou de evaluare (job #2812111)
Utilizator | Data | 3 decembrie 2021 23:19:58 | |
---|---|---|---|
Problema | Floyd-Warshall/Roy-Floyd | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:28: error: declaration of 'a' as array of references
9 | void roy_floyd(int n, int &a[105][105]){
| ^
main.cpp: In function 'void roy_floyd(...)':
main.cpp:10:25: error: 'n' was not declared in this scope
10 | for( int k = 1; k < n; k++ ){
| ^
main.cpp:13:21: error: 'a' was not declared in this scope
13 | 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 !