Borderou de evaluare (job #1324630)
Utilizator | Data | 22 ianuarie 2015 16:46:05 | |
---|---|---|---|
Problema | Floyd-Warshall/Roy-Floyd | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Solve_RoyFloyd()’:
user.cpp:32:45: error: ‘Rf’ was not declared in this scope
RF[i][j] = minim(RF[i][j] , Rf[i][k] + RF[k][j]);
^
user.cpp:6:24: note: in definition of macro ‘minim’
#define minim(a,b) ((a<b)?(a):(b))
^
user.cpp: In function ‘void Read()’:
user.cpp:14:37: 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);
^
user.cpp:15:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&N);
^
user.cpp:19:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&RF[i][j]);
^
user.cpp: In function ‘void Print()’:
user.cpp:37:39: 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);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !