Borderou de evaluare (job #1455417)

Utilizator Player1Player 1 Player1 Data 27 iunie 2015 23:01:47
Problema Sortare topologica Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void DFS(int)’: user.cpp:20:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j=0; j<V[index].size(); j++) ^ user.cpp: In function ‘int main()’: user.cpp:52:2: error: ‘f’ was not declared in this scope f.close(f);f.close(g); ^ user.cpp:52:21: error: ‘g’ was not declared in this scope f.close(f);f.close(g); ^ user.cpp:33:15: warning: unused variable ‘j’ [-Wunused-variable] int x, y, i, j; ^ user.cpp:30:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sortaret.in","r",stdin); ^ user.cpp:31:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sortaret.out","w",stdout); ^ user.cpp:35:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d ", &N, &M); ^ user.cpp:38:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d ", &x, &y); ^

Ceva nu functioneaza?