Borderou de evaluare (job #2527930)
Utilizator | Data | 21 ianuarie 2020 09:46:36 | |
---|---|---|---|
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 'int main()':
main.cpp:10:27: error: 'a' was not declared in this scope
scanf ("%d", &a[i][j]);
^
main.cpp:14:21: 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)
^
main.cpp:18:28: error: 'a' was not declared in this scope
printf ("%d ", a[i][j]);
^
main.cpp:4:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("royfloyd.in", "r", stdin);
^
main.cpp:5:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("royfloyd.out", "w", stdout);
^
main.cpp:7:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &n);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !