Borderou de evaluare (job #2484192)
Utilizator | Data | 30 octombrie 2019 19:07:48 | |
---|---|---|---|
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(int (*)[101], int)':
main.cpp:17:21: error: expected ';' before 'min'
a[i][j] min(a[i][j] , a[i][k] + a[k][j]) ;
^~~
main.cpp:17:19: warning: statement has no effect [-Wunused-value]
a[i][j] min(a[i][j] , a[i][k] + a[k][j]) ;
~~~~~~^
main.cpp: In function 'int main()':
main.cpp:26:40: error: 'INT_MAX' was not declared in this scope
for(int j=1;j<=n;++j)a[i][j] = INT_MAX;
^~~~~~~
main.cpp:36:27: error: 'INT_MAX' was not declared in this scope
if(a[i][j] != INT_MAX)cout << a[i][j] << ' ';
^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !