Borderou de evaluare (job #1481391)

Utilizator thinkphpAdrian Statescu thinkphp Data 4 septembrie 2015 12:50:26
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void writeData()’: user.cpp:104:46: error: ‘fout’ was not declared in this scope for(int j = 2; j <= nodes; j++) fprintf(fout, "%d ", dist[ j ]); ^ user.cpp:106:14: error: ‘fout’ was not declared in this scope fclose( fout ); ^ user.cpp: In function ‘void read()’: user.cpp:45:42: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d %d", &nodes, &edges); ^ user.cpp:49:46: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d %d %d", &A, &B, &C); ^

Ceva nu functioneaza?