Borderou de evaluare (job #2195857)
Utilizator | Data | 17 aprilie 2018 15:45:50 | |
---|---|---|---|
Problema | Floyd-Warshall/Roy-Floyd | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:15: error: size of array ‘dp’ is too large
int n, dp[N][N];
^
user.cpp: In function ‘int main()’:
user.cpp:16:10: error: ‘dp’ was not declared in this scope
in >> dp[i][j];
^~
user.cpp:20:8: error: ‘dp’ was not declared in this scope
if(dp[i][k] && dp[k][j] && (dp[i][j] == 0 || dp[i][k] + dp[k][j] < dp[i][j]))
^~
user.cpp:24:11: error: ‘dp’ was not declared in this scope
out << dp[i][j] << ' ';
^~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !