Borderou de evaluare (job #1349608)
Utilizator | Data | 20 februarie 2015 12:40:18 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:1: error: ‘ifstream’ does not name a type
ifstream fin("bellmanford.in");
^
user.cpp:5:1: error: ‘ofstream’ does not name a type
ofstream fout("bellmanfor.out");
^
user.cpp: In function ‘bool bellman(int)’:
user.cpp:39:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < ad[i].size(); j++)
^
user.cpp:47:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < ad[i].size(); j++)
^
user.cpp: In function ‘int main()’:
user.cpp:59:2: error: ‘fin’ was not declared in this scope
fin >> n >> m;
^
user.cpp:69:3: error: ‘fout’ was not declared in this scope
fout << "Ciclu negativ!";
^
user.cpp:75:4: error: ‘fout’ was not declared in this scope
fout << d[i] << ' ';
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !