Borderou de evaluare (job #1708709)

Utilizator adrian.popoviciPopovici Adrian adrian.popovici Data 27 mai 2016 20:21:39
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:11: error: conflicting declaration ‘std::ofstream f’ ofstream f("dijkstra.out"); ^ user.cpp:8:10: error: ‘f’ has a previous declaration as ‘std::ifstream f’ ifstream f("dijkstra.in"); ^ user.cpp: In function ‘void read()’: user.cpp:32:12: error: ‘in’ was not declared in this scope fscanf(in, "%d %d", &n, &m); ^ user.cpp: In function ‘int main()’: user.cpp:145:17: error: ‘out’ was not declared in this scope fprintf(out, "%d ", d[i] == inf ? 0 : d[i]); ^ user.cpp:146:13: error: ‘out’ was not declared in this scope fprintf(out, "\n"); ^

Ceva nu functioneaza?